0
我是sencha js 4的新手。我已经按照sencha文档指南关于如何使用actioncolumn
的说明,但它不显示在我的格。Sencha Ext JS4 .. [Grid ActionColumn]不显示
“如果我错过了?有什么,我跳过了?或者是有什么,我没有包括在内?帮助..”
我使用kitchenSink
样品是煎茶为我提供。我试图操纵它并从网格中的一个kitchenSink
样品
在这里,在添加了actioncolumn
是我的代码:
Ext.define('PayrollLite.view.GridExample', {
extend: 'Ext.grid.Panel',
frame: true,
width: 1200,
height: 750,
store: 'Employees',
columns:
[
{ text: 'Employee Code', width: '10%', dataIndex: 'EmployeeCode' },
{ text: 'Last Name', width: '22%', dataIndex: 'LastName'},
{ text: 'First Name', width: '25%', dataIndex: 'FirstName' },
{ text: 'Middle Name', width: '15%', dataIndex: 'MiddleName' },
{ text: 'Position', width: '15%', dataIndex: 'PositionID', sortable: false },
{
xtype:'actioncolumn',
width:50,
items: [{
icon: 'extjs/examples/shared/icons/fam/cog_edit.png', // Use a URL in the icon config
tooltip: 'Edit',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Edit " + rec.get('firstname'));
}
},{
icon: 'extjs/examples/restful/images/delete.png',
tooltip: 'Delete',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Terminate " + rec.get('firstname'));
}
}]
}
]
});
你的问题是什么? –
sry,我的意思是......我的代码有什么问题,它缺少一些要求吗?或者它是语法错误?这就是为什么它不显示任何东西。 ?_? – user1730483
我的问题是“为什么它不显示我插入网格项目中的动作列?” – user1730483