Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Nov 02, 2008 00:30
open dhtmlx forum
Drop on treeGrid

Hi Team,

I have scenario for drag and drop in which I want to select multiple rows from grid and drop into some specific tree node.In that case I want to collect all rowids of dragged rows and fire a normal/ajax request to server.
And we can drop elements to only some specific nodes.
How to do it?

Thanks

-Agile
Answer posted by Support on Nov 03, 2008 03:30
>>And we can drop elements to only some specific nodes.
tree.attachEvent("onDragIn",function(sid,tid){
 if (some_check(tid)) return false; //block drop for some elements
 return true;
});

>>In that case I want to collect all rowids of dragged rows and fire a normal/ajax
tree.attachEvent("onDrag",function(sid,tid){
   //will be called for each dragged item, so you will be able to abtain IDs of draged elements
});

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Managed_Drag_and_Drop.html#grid_mandnd