dhtmlxTreeGrid moveRowTo() example

I am trying to use moveRowTo() to make one row a child of another via API calls (not via drag and drop).

I have drag and drop enabled and it works properly for me, but I want my TreeGrid to move a row to the right position in the tree as part of an onCellChanged event when the user types the parent_id into a parent id column.

So far, moveRowTo() just freezes my Firefox. There doesn’t seem to be an example of moveRowTo() in your documentation. It might be a nice thing to add.

So far, moveRowTo() just freezes my Firefox.
Can you please provide code example where this issue occurs?