Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by NB on May 22, 2007 17:08
open dhtmlx forum
dhtmlTreeGrid

I need to move rows from a treegrid to other treegrid. Searching in the documentation i found two functions to move rows: moveRow() and moveRowTo(srowId,trowId,mode,dropmode,sourceGrid,targetGrid). Do you have an example of moving rows using moveRowTo() between two treegrids? The main diference between moveRow() and moveRowTo() is?
Answer posted on May 22, 2007 19:02
>>The main diference between moveRow() and moveRowTo() is?

In current version moveRow function exist only because of backward compatibility reasons.
moveRowTo functionality can provide the same functionality, plus some functionality which not availalble by moveRow functions.

To move row between treeGrids you can use next code
    grid.moveRowTo("id1","id2","move","sibling",grid,grid2);

this will move row id1 from grid to grid2 as sibling of row id2

Answer posted by Nadine (Support) on Dec 06, 2014 20:29

Having solved the problem mentioned above, you may also look through the possible related problems with editable javascript table and dhtml text editor.