extjs rowEditing 的Update按钮的可用状态如何修改
me.columns=[{text:'节点ID',dataIndex:'NodeId',width:140,editor:{id:'editorNodeId',allow...
me.columns = [ { text: '节点ID', dataIndex: 'NodeId', width: 140, editor: { id: 'editorNodeId', allowBlank: false, listeners: { change: me.onchange } } }, { text: '菜单名称', dataIndex: 'MenuName', width: 100, editor: { id: 'editorMenuName', allowBlank: false, listeners: { change: me.onchange } } }, { text: '父节点ID', dataIndex: 'ParentNodeID', width: 100, editor: { xtype: 'combo', store: 'NodeId', id: 'editorParentNodeID', allowBlank: false,forceSelection:true, emptyText: "必须要有父节点", displayField: 'NodeId', valueField: 'NodeId', minChars: 0, listConfig: { loadingText: '查询中...', emptyText: '没有符合条件的数据', minWidth: 260, getInnerTpl: function () { return '<div data-qtip="{NodeId}. {MenuName}">{NodeId}--{MenuName}</div>'; } }, listeners: { change: me.onchange } } }, { text: '链接地址', dataIndex: 'MenuUrl', width: 350, editor: 'textfield' }, { text: '节点样式', dataIndex: 'cls', width: 100, editor: 'textfield' }, { xtype: 'checkcolumn', text: '是否锁定', dataIndex: 'load', winth: 100, editor: { xtype: 'checkbox', cls: 'x-grid-checkheader-editor' } } ]
第一次代码不全,把下面一段也发出来
me.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
autoCancel: false,
saveBtnText: '保存',
cancelBtnText: '取消',
errorsText: '错误',
dirtyText: "你要确认或取消更改"
});
me.plugins = [me.rowEditing]; 展开
第一次代码不全,把下面一段也发出来
me.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
autoCancel: false,
saveBtnText: '保存',
cancelBtnText: '取消',
errorsText: '错误',
dirtyText: "你要确认或取消更改"
});
me.plugins = [me.rowEditing]; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询