Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by veerendra on Sep 01, 2008 00:08
open dhtmlx forum
dhtmlGrid

Hi,
I am using dhtmlx grid, and my requirement is : when i check checkboxes( say 3 checkboxes), i need to get the corresponding rows data to add in the second grid. Is there any method for getting rows? ( i found forEachRow method, but i dont know how can i use). can you give any sample code for getting those records.

Regards,
Veerendrandh.Potru
Answer posted by Support on Sep 01, 2008 01:58
To get IDs of checked rows you can use 

var ids = grid.getCheckedRows(checkbox_column_index); //returns comma separated list

To get cell value 

var value = grid.cells(row_id, column_index).getValue()