Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kunal Bhatia on Jul 10, 2009 03:07
open dhtmlx forum
Checkbox in the Column Header

Hello All,

I want a checkbox in the column header which selects all checkbox in that column cells.
like we have Select All .Deselct all option.
How can i achieve this in code:

Answer posted by dhxSupport on Jul 10, 2009 03:19
Answer posted by Kunal bhatia on Jul 10, 2009 03:39

i got ur reply..but when i apply the code

grid.setHeader("A,#master_checkbox,C");

mygrid.attachHeader("1,2,3,#numeric_filter,#master_checkbox,6,7,8");

It doesn't work at all...

i have given a label already in my grid but i want a check bo instead of that....a check box is coming by writing HTML checkbox tag in the label but that checkbox is way to large in height and also the select all option is not workin in that ...can u help me in this

Answer posted by dhxSupport on Jul 10, 2009 03:49
To use #master_check box you have to include dhtmlxgrid_filter.js file to your page. If some visual problems occurs please send us screen short or sample where we can reproduce this issue.