Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 07, 2007 11:36
open dhtmlx forum
I want to implement a checkbox column in my tree grid. User can select multiple rows by using keyboard (shif...

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.
Answer posted on Mar 07, 2007 11:37

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);

Answer posted by Darya (Support) on Dec 11, 2014 06:47

The information connected with view index shtml shop and php event calendar ajax also can help you, so please check it too.