GridDragDrop beforeDrop Event and Direct Method

  1. #1

    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.

    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?
  2. #2
    Any help guys?

Similar Threads

  1. [CLOSED] Output Cache issue with Direct Method / Direct Event
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Mar 01, 2013, 5:03 AM
  2. [CLOSED] Direct Event/Method Call Priority
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 08, 2013, 2:04 PM
  3. Direct method and direct event over SSL?
    By dimitar in forum 1.x Help
    Replies: 0
    Last Post: Oct 08, 2011, 8:09 PM
  4. Replies: 1
    Last Post: Mar 11, 2011, 2:54 PM
  5. Replies: 8
    Last Post: Jun 24, 2010, 9:39 PM

Posting Permissions