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

How to change the obsolete implementation to the new one.

7 Answers 21 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Quang Khải
Top achievements
Rank 1
Quang Khải asked on 21 Jan 2016, 08:46 AM

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

Sort by
0
Quang Khải
Top achievements
Rank 1
answered on 21 Jan 2016, 08:52 AM

Ohh, look! I can attach a zip file.

So you can download it from this link: wpf-rowreorder.zip

0
Nasko
Telerik team
answered on 22 Jan 2016, 09:37 AM
Hi Jacky,

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
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 Feedback Portal and vote to affect the priority of the items
0
Quang Khải
Top achievements
Rank 1
answered on 23 Jan 2016, 09:50 AM

Hi Nasko,

 Thanks, however do you have a wpf version?

    

0
Quang Khải
Top achievements
Rank 1
answered on 25 Jan 2016, 02:28 AM

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?

0
Nasko
Telerik team
answered on 27 Jan 2016, 01:56 PM
Hello Jacky,

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
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 Feedback Portal and vote to affect the priority of the items
0
Quang Khải
Top achievements
Rank 1
answered on 28 Jan 2016, 06:27 AM

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.

0
Nasko
Telerik team
answered on 28 Jan 2016, 08:45 AM
Hello Jacky,

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
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 Feedback Portal and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
Quang Khải
Top achievements
Rank 1
Answers by
Quang Khải
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or