开发者

how can i add checkbox in a column header? ext js

I have a grid, with dynamically ch开发者_StackOverflow社区anging number of columns. I've already got column with checkboxes. I need to add a checkBox to other columns headers, only to headers.


Yes. Include the Ext.grid.CheckboxSelectionModel as a column when declaring your ColumnModel.

var colModel = new Ext.grid.ColumnModel({
    columns: [ new Ext.grid.CheckboxSelectionModel(),
    {/* other columns}]
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜