extjs datefield 在IE下控件显示不全的问题
varpEntry=newExt.Panel({renderTo:"divEntry",title:"已下载出款查询",id:"pEntry",width:m_pageW...
var pEntry = new Ext.Panel
({
renderTo: "divEntry",
title: "已下载出款查询",
id: "pEntry",
width: m_pageWidth,
layout: "table",
layoutConfig: { columns: 2 },
frame: true,
items:
[
{ layout: "form", labelWidth: 80, items: [{ xtype: "textfield", width: 390, id: "txtBatchID", fieldLabel: " 批次号"}], colspan: 2 },
{ layout: "form", labelWidth: 80, items: [{ xtype: "datefield", width: 150, id: "txtStrTime", fieldLabel: " 起始日期", format: "Y-m-d", value: getDate(new Date().add(Date.DAY, -1)), allowBlank: false, blankText: "必填"}] },
{ layout: "form", labelWidth: 80, items: [{ xtype: "datefield", width: 150, id: "txtEndTime", fieldLabel: " 结束日期", format: "Y-m-d", value: getDate(new Date()), allowBlank: false, blankText: "必填"}] }
],
buttons: [{ text: "查询", id: "btn_Query", name: "btnQuery", handler: btnQuery_OnClick}]
})
这个是代码 展开
({
renderTo: "divEntry",
title: "已下载出款查询",
id: "pEntry",
width: m_pageWidth,
layout: "table",
layoutConfig: { columns: 2 },
frame: true,
items:
[
{ layout: "form", labelWidth: 80, items: [{ xtype: "textfield", width: 390, id: "txtBatchID", fieldLabel: " 批次号"}], colspan: 2 },
{ layout: "form", labelWidth: 80, items: [{ xtype: "datefield", width: 150, id: "txtStrTime", fieldLabel: " 起始日期", format: "Y-m-d", value: getDate(new Date().add(Date.DAY, -1)), allowBlank: false, blankText: "必填"}] },
{ layout: "form", labelWidth: 80, items: [{ xtype: "datefield", width: 150, id: "txtEndTime", fieldLabel: " 结束日期", format: "Y-m-d", value: getDate(new Date()), allowBlank: false, blankText: "必填"}] }
],
buttons: [{ text: "查询", id: "btn_Query", name: "btnQuery", handler: btnQuery_OnClick}]
})
这个是代码 展开
1个回答
展开全部
是这个属性
editable: false,
具体API描述:
editable : Boolean
false to prevent the user from typing text directly into the field, the field will only respond to a click on the trigger to set the value. (defaults to true).
editable: false,
具体API描述:
editable : Boolean
false to prevent the user from typing text directly into the field, the field will only respond to a click on the trigger to set the value. (defaults to true).
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询