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] );

Parameters

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

Example

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

Back to top