GridPanel Dynamic add column

var col_updator= Ext.create('Ext.grid.column.Column', {id:"col_Updator",filter:true,items:[{plugins:[{ptype:"clearbutton"}],xtype:"textfield"}],dataIndex:"Updator",text:"更新人"});

App.gc.headerCt.insert(App.gc.columns.length,col_updator);

//App.gc.getView().refresh();

 

posted on 2021-05-05 09:25  wakaka_wka  阅读(41)  评论(0编辑  收藏  举报