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:
    grid1_rowdropped....
        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,
    Mike
  2. Mira
    Admin
    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.

    Regards,
    Mira
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. MV
    MV avatar
    21 posts
    Member since:
    Dec 2015

    Posted 17 Aug Link to this post

    Hi,

    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!

  5. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1800 posts

    Posted 22 Aug Link to this post

    Hello,

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


    Regards,
    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