Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Nov 13, 2008 12:42
open dhtmlx forum
select row not working

hi,

the following code is not working in a grid:

lookupsGrid.addRow(lookupID,lookupID);
lookupsGrid.selectRowById(lookupID);

the row gets added ok but it is not being selected, no error is being displayed it is just not selecting it.

i have also tried:

lookupsGrid.selectRow(lookupsGrid.getRowIndex(lookupID));

the grid is also being using the xml smart rendering if this makes any difference

thanks
Answer posted by Support on Nov 14, 2008 02:06
The problem may occur if you are using non-unique ID - please be sure that lookupID is unique and not equal to 0.