我在该网格面板中使用 extjs 创建了一个编辑器网格面板,默认情况下,列应与文本字段一起加载
var Grid= new Ext.grid.EditorGridPanel({
store:checkpoint,
renderTo:'testgrid',
autoHeight:true,
border:false,
clicksToEdit: 1,
columns: [ {header:'Check Points',
menuDisabled: true,
dataIndex: 'checkpoints',
valueField:'Id',
width:300,
},
{
menuDisabled: true,
header:'Report',
dataIndex: 'developerreport',
renderer: function (v,p) {
p.attr += ' ext:qtip=" click to edit"';
return v;
} ,
editor: new Ext.form.ComboBox({
hideTrigger: true,
name: 'comment',
id:'comment',
mode: 'local',
store: names,
displayField: 'role',
triggerAction: 'all',
emptyText:'Select Role',
allowBlank: false,
editable: false,
forceSelection: true}),},
{header:'Comment',
menuDisabled: true,
dataIndex: 'developercomment',
renderer: function (v,p) {
p.attr += ' ext:qtip=" click to add"';
return v;
} ,
editor: new Ext.form.TextField({
}),}],
viewConfig: {
deferEmptyText: false,
forceFit: true,
emptyText: '<p style="font-size: 13px;color:red;">Please fill the above details</p>',
},
});
我希望评论字段应该加载文本框,有什么办法吗
提前致谢