Ext.grid.plugin.CellEditing如何取值
caelyntang
2012-08-29
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1 }); var grid_xiaopiao = Ext.create('Ext.grid.Panel', { id:'grid_xiaopiao', region : 'center', store:Store_mx, stateful : true, stripeRows : true, margins : '0 5 5 5', columnLines : true, plugins: [cellEditing], height:'200', disableSelection : false,// 值为TRUE,表示禁止选择行 frame : false, columns: [new Ext.grid.RowNumberer(), { header: '变更项目', dataIndex: 'changeproject', width : 100 },{ header: '变更原因', dataIndex: 'os_price_cg_cause', width : 160 },{ header: '原价格¥', dataIndex: 'os_machining_price', width : 80 },{ header: '现价格¥', dataIndex: 'os_real_jgf', width: 80, editor: { xtype: 'numberfield', allowBlank: false, minValue: 0, maxValue: 100000 } }, 请教高手,如何获取‘现价格’中edit后的值 |