那么,您可以将复选框添加到网格中的每个项目,然后对选定的项目执行一些操作。
Ext.define('Your.items.Grid' ,{
extend: 'Ext.grid.Panel',
title : 'Grid with checkboxes',
store: 'Items',
// This line adds checkboxes
selModel: Ext.create('Ext.selection.CheckboxModel'),
columns: [
// Some columns here
],
initComponent: function() {
this.dockedItems = [{
xtype: 'toolbar',
items: [{
itemId: 'process',
text: 'Process',
action: 'process' // Bind to some action and then process
}]
},
{ // Here is pagination
xtype: 'pagingtoolbar',
dock:'top',
store: 'Items',
displayInfo: true,
displayMsg: 'Displaying items {0} - {1} of {2}',
emptyMsg: "No items to display"
}];
this.callParent(arguments);
}
});
希望我理解正确你的问题
感谢您的答复,我相信它是有用的,但我不与ExtJS的太先进,并且必须与清单进行 – Grigor