Sep 24, 2013, 7:48 PM
GridDragDrop beforeDrop Event and Direct Method
Dears,
I'm using GridDragDrop with listener having beforeDrop event which called a direct method to insert data and upon the success/failure will complete/cancel dropping.
By the way, how to disable gridDragDrop multiselect? I tried
Any help?
I'm using GridDragDrop with listener having beforeDrop event which called a direct method to insert data and upon the success/failure will complete/cancel dropping.
var gpBeforeDrop = function (node, data, overModel, dropPosition, dropHandlers) {
MyNamespace.insertData("data 1", "data 2", {
success: function (result) {
if (result == true)
dropHandlers.processDrop();
else
dropHandlers.cancelDrop();
}, timeout:600000
});
alert("Finish");
};
The problem I faced is that the event alerts "Finish" before the direct method complete the insertion of data. How to wait until the direct event finish inserting data? The event should be a listener Fn because it is in a usercontrol and the direct method is in seperated file (myUserControl.ascx.cs contains no code).By the way, how to disable gridDragDrop multiselect? I tried
multiselect = "False"
but it is not working.Any help?