This is a migrated thread and some comments may be shown as answers.

Rows Drag and Drop in RadGridView

8 Answers 241 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Max xu
Top achievements
Rank 1
Max xu asked on 22 Jun 2010, 12:55 PM
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

8 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 22 Jun 2010, 12:59 PM
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
0
Max xu
Top achievements
Rank 1
answered on 22 Jun 2010, 01:07 PM
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
0
Pavel Pavlov
Telerik team
answered on 22 Jun 2010, 03:16 PM
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
0
Marc Roussel
Top achievements
Rank 2
answered on 27 Apr 2011, 06:50 PM
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 ?
0
Milan
Telerik team
answered on 28 Apr 2011, 06:40 AM
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
0
Marc Roussel
Top achievements
Rank 2
answered on 28 Apr 2011, 11:10 AM
Thank you.
I just thought it would have been easier than that.
0
Marc Roussel
Top achievements
Rank 2
answered on 28 Apr 2011, 11:33 AM
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.
0
Marc Roussel
Top achievements
Rank 2
answered on 28 Apr 2011, 12:40 PM
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 ?

Tags
GridView
Asked by
Max xu
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Max xu
Top achievements
Rank 1
Marc Roussel
Top achievements
Rank 2
Milan
Telerik team
Share this question
or