How to change the obsolete implementation to the new one.

8 posts, 0 answers
  1. Jacky
    Jacky avatar
    10 posts
    Member since:
    Dec 2015

    Posted 21 Jan Link to this post

    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

  2. Jacky
    Jacky avatar
    10 posts
    Member since:
    Dec 2015

    Posted 21 Jan Link to this post

    Ohh, look! I can attach a zip file.

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 22 Jan Link to this post

    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
  5. Jacky
    Jacky avatar
    10 posts
    Member since:
    Dec 2015

    Posted 23 Jan in reply to Nasko Link to this post

    Hi Nasko,

     Thanks, however do you have a wpf version?

        

  6. Jacky
    Jacky avatar
    10 posts
    Member since:
    Dec 2015

    Posted 24 Jan Link to this post

    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?

  7. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 27 Jan Link to this post

    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
  8. Jacky
    Jacky avatar
    10 posts
    Member since:
    Dec 2015

    Posted 28 Jan Link to this post

    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.

  9. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 28 Jan Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready