Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alok on Aug 29, 2008 22:43
open dhtmlx forum
Treegrid Checkboxes

I am having a dhtmlx tree grid. In the first column of the tree grid I need to have check boxes for the rows which are leaf nodes and having specific row ids. The column type is ‘tree’.
I should be able to get the row ids of all the rows where the checkboxes are selected.

Please let me know if this is possible and how.
Thanks
Answer posted by Support on Sep 01, 2008 01:23
You can't have checkboxes as part of tree cell, but you can just define a separate column of checkboxes

grid.setColTypes("ch,tree,...

To get IDs of checked rows you can use 

var list = grid.getCheckedRows(0); // returns comma separated list of IDs