重载Ext.grid.ColumnModel 的
getCellEditor : function(colIndex, rowIndex)
方法
根据rowIndex返回不同editor
貌似必须加GridEditor
new Ext.grid.GridEditor(new Ext.form.CommComBox( {}))
否则位置会错掉
getCellEditor : function(colIndex, rowIndex)
方法
根据rowIndex返回不同editor
貌似必须加GridEditor
new Ext.grid.GridEditor(new Ext.form.CommComBox( {}))
否则位置会错掉
本文介绍如何重载 Ext.grid.ColumnModel 的 getCellEditor 方法,并根据 rowIndex 返回不同的 editor。为确保正确显示,通常需要结合使用 GridEditor 和 CommComBox 组件。
2万+

被折叠的 条评论
为什么被折叠?



