Rows Drag and Drop in RadGridView

9 posts, 0 answers
  1. Max xu
    Max xu avatar
    15 posts
    Member since:
    Oct 2009

    Posted 22 Jun 2010 Link to this post

    Excuse  me,please 
      I want to reorder the rows in one RadGridView. We are using Silverlight 3  .Can you give me a demo?
    Thank you in advance.
    Regards,
    Max
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 22 Jun 2010 Link to this post

    Hello Max xu,

    RadGridView will show the items in the order they appear in the ItemsSource collection . So if you reorder the items  in the source collection , RadGridView will respect it.

    Best wishes,
    Pavel Pavlov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Max xu
    Max xu avatar
    15 posts
    Member since:
    Oct 2009

    Posted 22 Jun 2010 Link to this post

    Thank you ,first.
    I'm sorry that I didn't express clear. I want to ask how to drag the first row to drop it on the third row,for example.

    Regards,
    Max
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 22 Jun 2010 Link to this post

    Hello Max xu,

    In such case you might find this online demo  helpful. There is source code available there as well.

    Kind regards,
    Pavel Pavlov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 27 Apr 2011 Link to this post

    I was searching about how to just DRAG a row outside the grid to drop in a stackpanel.  Do you have something simplier to implement just for this scenario ?

    I can drop things everywhere but I'm unable to understand what I have to do ti DRAG a row from the grid
    What am I missing so the drag effect works and I can go drop it on my stack panel ?
  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 28 Apr 2011 Link to this post

    Hello Marc Roussel,

    I believe that this help article will be very help full. You will just have to replace the ListBox with StackPanel.


    Kind regards,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 28 Apr 2011 Link to this post

    Thank you.
    I just thought it would have been easier than that.
  9. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 28 Apr 2011 Link to this post

    Sorry sir but I'm trying to figure out where you get the RadDragAndDropManager into the grid as I'm in Blend and I don't understand how you managed to get a xaml like in the article using Blend ?

    I never write any xaml by hand myself.
  10. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 28 Apr 2011 Link to this post

    Ok now that I change it for your uri namespace telerik, it works.  I've send a comment to the documentation team
    Now

    I've implemented the article as is and when I move the cue on the drop container which is a StackPanel instead of a ListBox, every pixel I move over the Stack Panel it's changing the cue to not possible and possible very rapidelly for every pixel I move so I have to be at the right pixel to have the cue letting me drop the item and once I've dropped with difficulties, it gets twice in the DropInfo and I have twice the row from the grid in the destination container.  What's wrong ?  I can send a Repro so do I have to create a ticket for that ?

Back to Top
DevCraft banner