Hi Telerik admin,
I am trying to add reordering row functionally to my gridview, I found the example somewhere on Telerik 4rum, but the example used RadDragAndDropManager which is obsolete implementation, thus I changed to DragDropManager follow this link: here, but it does not work.
I had searched so much before created this thread, plz take a look at the attached file and wonderful if anyone modify it to work. Thanks
7 Answers, 1 is accepted
Ohh, look! I can attach a zip file.
So you can download it from this link: wpf-rowreorder.zip
Please, check our demo of reordering rows that demonstrates how to achieve the desired functionality using the new DragDropManager. An online version of the demo you could find here:
http://demos.telerik.com/silverlight/#GridView/RowReorder
Hope this helps.
Regards,
Nasko
Telerik
Hi Nasko,
Thanks, however do you have a wpf version?
I just found the example for wpf.
It uses Attached Behavior, however because of in DropIndicationDetails.cs uses OnProperyChanged notification, thus it has to be inherited ViewModelBase, it seems to be break the MVVM policy, any Blend behavior implementation for this?
The ViewModelBase is just a class that implements the INotifyPropertyChanged and should break the MVVM pattern - you should not have concerns that the pattern is broken using that class.
I am not exactly sure what this part of the sentence means "any Blend behavior implementation for this?". Could you provide us some more details what exactly you want to achieve?
Hope the provided information will be helpful for you.
Regards,
Nasko
Telerik
Thanks for your answer Nasko, currently I already solved my problem.
Sorry for made you confuse, we have 2 typies of behaviors, right? Attached Behavior and Blend Behavior. Blend behaviors inherits from Behavior<T> and uses a reference to System.Windows.Interactivity which comes from blend SDK. And I try to find an source code that implement reorder rows using Blend Behavior.
I am glad to hear that you were able to resolve your issues and now everything is working as expected for you.
If you have any additional questions or concerns regarding Telerik controls, do not hesitate to contact us.
Regards,
Nasko
Telerik