Check documentation for the latest version of dhtmlxSuite move DHTMLX Docs

move

moves an item to the defined position

void move(string|number sid, [number tindex,object tobj,string|number tid] );
sidstring|numberid of the source item, mandatory
tindexnumbertarget index, optional
tobjobjecttarget object (target dataview), optional
tidstring|numberthe id which will be assigned to the item after moving, optional

Example

//move to some position
myDataView.move(source_id, index);
//move to a different view
myDataView.move(source_id, index, some_other_view);
   //or
myDataView.move(source_id, null, some_other_view);
   //or
myDataView.move(source_id, index, some_other_view, target_id);

Back to top