Categories | Question details Back To List | ||
Drag and Drop for Data Storage (not actually changing the data in the grids) Is there a way to utilize the drag and drop functionality without actually moving rows? I have two grids and I want to be able to drag from one to the other to indicate that certain data should get updated (based on which rows are dragged and dropped over which other rows). Is there a way to do this? Thanks. Answer posted by Support on May 19, 2009 06:31 There is onDrag event in grid , it occurs when row was draged and released on potential target, but before row really was moved. You can use code as grid.attachEvent("onDrag",function(sid,tid){ //sid - id of draged row //tid - id of drop target .... any custom logic here .. return false; //block real moving }); Answer posted on May 19, 2009 06:36 Thanks. How would it work if multiple rows were dragged? Answer posted by Alex (support) on May 19, 2009 07:16 In case of multiselection sid will contain the list with ids of dragged items and "return false" will block moving of all items |