使Grid可编辑
1.
{
xtype: 'sms_PostRequirementGrid',
border: false,
plugins: [{
ptype:'cellediting',
clicksToEdit:1
}
2.
{
header: 'PostDutyDescription',
dataIndex: 'PostDutyDescription',
emptyCellText: 'please fill the cell',
editor: { xtype: 'textfield', allowBlank: false },
flex: 1,
renderer: function (value, metaData, record, colIndex, store, view) {
metaData.tdAttr = 'data-qtip="' + value + '"';
return value;
}
}
【上述还有待确定和总结】 :只用2行不行?

浙公网安备 33010602011771号