[CLOSED] Grid Row Order using the Plug-in

  1. #1

    [CLOSED] Grid Row Order using the Plug-in

    Hi,

    I'm using the GridDragDrop plugin to do re-ordering of my grid rows and I want to attach an event to the drop event. So that I can update the order field in the grid because I need to save the order of the items back to the database.

    I tried to do the following...

    .View(X.GridView()
                .Plugins(X.GridDragDrop()
                    .DragText("DRAG AND DROP TO RE-ORDER")
                    .AddListener("onDrop", "alert('Dropped');")                
                )
            )
    But the event is not firing. Is there a way to attach to the plugin's drop event?

    Please advise.
    Last edited by Daniil; May 27, 2014 at 4:51 AM. Reason: [CLOSED]
  2. #2
    Hi @leonardm,

    Please use:
    .View(
        X.GridView()
            .Listeners(e => e.Drop.Handler = "alert('Drop')")
    )
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @leonardm,

    Please use:
    .View(
        X.GridView()
            .Listeners(e => e.Drop.Handler = "alert('Drop')")
    )
    Thanks Daniil. You can close this now.

Similar Threads

  1. [CLOSED] Order GridPanel Groups in an arbitrary order?
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 27, 2013, 4:35 AM
  2. [CLOSED] How do I use the new Password mask plug in.
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 03, 2013, 4:56 AM
  3. [CLOSED] How to call the plug-in command event
    By tobros in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 07, 2013, 6:06 AM
  4. Replies: 0
    Last Post: Aug 24, 2011, 12:13 AM
  5. [CLOSED] Re-Order Grid
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 31, 2011, 10:24 PM

Tags for this Thread

Posting Permissions