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

Reorder RadGridView Rows inside a RadLayoutControl doesn't work

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lars D.
Top achievements
Rank 1
Lars D. asked on 16 Jun 2017, 09:12 AM

Hey community,
the row redorder sample doesn't work within a RadLayoutControl. It looks like as if the RadLayoutControl would intercept the DragEvent, so the  GiveFeedbackEventArgs is not called within the RowReorderBehavior.
Can you provide me asample or give me a hint please.

I've tried it with this sample:

http://docs.telerik.com/devtools/wpf/controls/dragdropmanager/how-to/howto-draganddrop-within-radgridview

Kind regards,
Lars

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Jun 2017, 07:28 AM
Hi Lars,

Thank you for your patience.

After researching the case, it indeed looks like that the events regarding the DragDropBehavior bubble up to the underlying drag drop logic of RadLayoutControl. It seems that when the example of RadGridView was implemented, such scenario has not been taken into consideration. So, in this scenario you can avoid the bubbling of the events by setting the Handled property of the event arguments of the DragInitialize event to true.

Attached to my reply you can find the modified example which I prepared for your convenience.

I hope this helps.

All the best,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Lars D.
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or