Categories | Question details Back To List | ||
Select & Unselect All in dhtmlXGridObject Hi Sir, I have created one object of "dhtmlXGridObject" & populated on screen with number of rows. For the first root node & immediate child node we dont have check box. However, after that we have check box for every row & i want to implement functionality select/unselect all. I used functions selectAll() & clearSelection() but it's not working as expected. Please let me know any other way to do this or how to use above mentioned functions. Customer No: 171222945 Thanks & Regards, Sangam Answer posted by dhxSupport on Feb 18, 2009 01:55 To select all rows from certain level at the treeGrid: function select(){ mygrid.clearSelection(); mygrid.forEachRow(function(id){ if(mygrid.getLevel(id)==2){ if (!mygrid.getOpenState(mygrid.getParentId(id))); mygrid.openItem(mygrid.getParentId(id)); mygrid.selectRow(mygrid.getRowIndex(id),false,true,true); } }); } |