Hi Sandeep,
You must first sync with the server. If you generate the ID there(on the server) you can call the commit with a second argument representing that ID, giving the row created in the treeGrid this ID.
addRow: (rowID, rowData, position, parentID, commit) => {
// At this point, the ID is generated from the treeGrid(rowID)
// Here you make the sync with the server and the server returns the ID created by it
// You call commit with a second argument the ID received from the server.
// And the row in the treeGrid is created with the ID from the server, not rowID(which is by default)
commit(true, IDReceivedFromTheServer);
}
Best Regards,
Ivo
jQWidgets Team
http://www.jqwidgets.com/