Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Robin on Dec 04, 2008 13:22
open dhtmlx forum
Adding Row dynamically to TreeGrid

Hi,

I am adding Row dynamically to TreeGrid using following code:

mygrid.addRow(strObjectId, arr, "",parentId,"");

It adds the new row as last child of parent row. It want make to make the new row as first child of parent row. Is it possible? If yes, please let me know how?

Thanks in advance.
Answer posted by Support on Dec 05, 2008 02:16
You can use 
       mygrid.addRowBefore(strObjectId,arr,before_id);
where before_id - id of row before which, new one need to be added.
Answer posted by Robin on Dec 05, 2008 09:06

cool...its worked

U guys rock...