Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Łukasz on Sep 08, 2008 04:44
open dhtmlx forum
Selecting without loosing previouse selection

I write my custom method wich selects few rows in dhtmlx grid, but selectRow method wich i use clears previouse selections while making new one? Can i select many rows programatically using some API function or not clear previouse selection?
Answer posted by Support on Sep 08, 2008 06:26
You can select multiple rows by using 

     grid.selectRow(index,false,true);

or

     grid.selectRowById(id,true);

the additional param controls - if new selected row must replace exisitng selection, or must be added to already selected rows

the next commands block , will select 3 records in grid
     grid.selectRow(0,false);
     grid.selectRow(1,false,true);
     grid.selectRow(2,false,true);