editorgridpanel的简单介绍
在使用ExtJS技术创建可编辑列表时editorgridpanel,首要步骤是初始化一个可编辑的列表,这通常通过new 实现用户可以通过单击或双击编辑列表中的行来实现数据的修改,具体配置方式可参考ExtJS API文档接下来,定义表格的列模型在需要嵌入下拉列表框的列中,可以这样定义header quot合同状态quot。
editorgridpanel你的grid是 吗header quotaaaquot,width 150,sortable true,align quotcenterquot,dataIndex quotpayerquot,editor new , 中是这么写的吗满足以上两点,且你的grid能正常显示数据,那就应该可以编辑了 你。
editor xtype #39numberfield#39, 数字 ,字符 xtype #39textfield#39 字符 更重要的是,你的GRID 必须要有 PLUGINplugins Extcreate#39#39, clicksToEdit 1 单击 ,双击 2header quotdddquot,width 100,sortable true,align。
如果你的grid继承的是,那么这个grid就是可编辑的,如果你的grid继承的是,这个grid就是不可编辑的。

JPanel statusPane = new JPanelnew GridLayout1, 1 CaretListenerLabel caretListenerLabel = new CaretListenerLabelquotCaret Statusquot statusPaneaddcaretListenerLabel Add the components getContentPanead。



