Funny Bug

I have created a cool system where I drag elements from a Tree to a TreeGrid. In order to forbid elements to be dragged from the TreeGrid I am doing some checking of element IDs.

BUG ALERT!

When using mygrid.changeRowId() the ID is successfully changed, yet in case a new element is dropped on the Grid with a ID that is already occupied (by the previous value b4 mygrid.changeRowId() was called) then the grid fails to generate a random new id.