How to change id, add UserData when using treeToGridElemet

Hi

Im using the treeToGridElement on my dhtmlxGrid.
I have a function that I can take the Tree Node data and convert it to the Cell Data for a Grid.

However, I can not figure out how to set the new row ID and how to add userData in the treeToGridElement.

Ive looked though the samples and search the forums, but I cant find any thing.

Please Help!!

Allen

I can not figure out how to set the new row ID
While drag-n-drop row id will be changed automatically. Also you can use setRowId(ind, row_id) method to change row id manually.

how to add userData in the treeToGridElement.
you can add row’s userdata with setUserData() method docs.dhtmlx.com/doku.php?id=dhtm … nal_data&s[]=userdata#userdata