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


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: … ent_ondrag
To get the id of the parent row: … etparentid

in case of duplicating ids you may move the needed row using the moveRowTo() method: … _moverowto