I want to implement a checkbox column in my tree grid. User

I want to implement a
checkbox column in my tree grid. User can select multiple rows by using
keyboard (shift + mouse select) or he can select checkboxes. I am able to write
code to check my checkboxes when user uses keyboard or to select row on check
of checkbox. but when user uncheck my checkbox, I am not able to remove focus
(unselect) from that row, meaning I want to make value of mygrid.getSelectedIds
to be null or nothing. How can I do that? Additionaly can I provide
functionality of Select All my
checkboxes.


You can
deselect all by calling:


           
grid.clearSelection();


>>Additionaly can I provide functionality of
Select All my checkboxes.


Currently grid doesn’t provide such functionality. The
only way is to go through row by index and set value for necessary cells


           
for (i=…


                       
grid.cells2(i,check_col_ind).setValue(1);<o:p></o:p>