开发者

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

开发者 https://www.devze.com 2023-02-16 10:01 出处:网络
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. I

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

精彩评论

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

关注公众号