Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kunal on Nov 11, 2008 01:18
open dhtmlx forum
how to set rowId in grid

hello,
I am using mygrid.parse(xmlString,'xmlB') api to load dhtmlx grid ...
while loading the xml content to grid, parse api automatically set the rowId
of each row of grid to null..hence i am unable to access the rowId for every row in grid..
Please tell me ... is there any provision to access the rowId in this case..?
also I want to set new rowId for such rows in grid after loading the content..
Answer posted by Support on Nov 11, 2008 01:46
The grid uses "id" attribute of "row" tag ( or tag used as row in your case ) as ID of newly created rows. If such value is not defined, grid will not auto-generate new IDs, but will use null

>>I want to set new rowId
In common case can be done by 
       grid.setRowId(index,ID);