RadGrid Drag & Drop Reordering (Up/Down)

4 posts, 0 answers
  1. M
    M avatar
    17 posts
    Member since:
    Jan 2008

    Posted 20 Aug 2009 Link to this post

    Q: When dragging rows up or down, how do we capture the new index?

    With the new drag & drop features of the 2009.Q2 release, is there a simple example of dragging a RadGrid row up or down?  All the online demos drag *between* grids, but even the online demos do not move the row up or down.

    I can do all the database stuff, I just need to know what event to hook into when dropping on the same grid, and how to get the new grid index of the dropped row.

    Logically it would be something like:
        if startingGrid = droppedGrid then
            get index of new location in grid1 that the row was dropped into
                do database stuff here (I can do this once I get the index passed back)

    I just need a little nudge in the right direction.
    (If anyone is building a simple sample from scratch, a small ToDo list sample would probably be usefull for the community.)

    Thank you,
  2. Mira
    Mira avatar
    1124 posts

    Posted 21 Aug 2009 Link to this post

    Hello M,

    Please take a look at the RadGrid Items reorder using DB backend code library - it implements the desired by you functionality.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. MV
    MV avatar
    29 posts
    Member since:
    Dec 2015

    Posted 17 Aug 2016 Link to this post


    I am able to reorder Radgrid on the server side, but now I am trying to do the same on the client side, using ajax. I've seen a lot of demos and documentation but I haven't been able to figure it out. What could be a good way to pass the index before and after it is dropped, and pass the rest of the items (array). Any help will be appreciated.

    Thank You!

  4. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 22 Aug 2016 Link to this post


    You could refer to the following online demo and documentation for detailed information and example on this matter:
    Hope this helps.

    Konstantin Dikov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top