don't prevent the same ID from existing after a drop

Hi,

I have a treegrid and a grid. I am dropping rows from the grid into the treegrid, but i have this problem: when a parent row in treegrid has the same ID than the row in the grid that i am trying to drop in, it fails. How can i prevent that and allow me to do that only if i am dropping into a child?

Thanks in advance.

Best regards.-

You may check the source and target ids right in onDrag event:
docs.dhtmlx.com/doku.php?id=dhtm … ent_ondrag
To get the id of the parent row:
docs.dhtmlx.com/doku.php?id=dhtm … etparentid

in case of duplicating ids you may move the needed row using the moveRowTo() method:
docs.dhtmlx.com/doku.php?id=dhtm … _moverowto