Check documentation for the latest version of dhtmlxSuite move DHTMLX Docs


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 list), optional
tidstring|numberthe id which will be assinged to the item after moving, optional


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

Back to top