RowDetailsTemplate and Insert/Update

7 posts, 0 answers
  1. Roy Halvorsen
    Roy Halvorsen avatar
    83 posts
    Member since:
    Oct 2008

    Posted 30 Aug 2010 Link to this post

    In the good old version of RadGrid in Asp.Net, it's documented how to use an EditForm with Insert/Update/Cancel, but how is this done in WPF when using MVVM pattern?

    I can not find anything in the docs about RadGrid when using MVVM. Is there a separate documentation, or is Telerik ignoring the pattern?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Aug 2010 Link to this post

    Hello,

     Have you checked our commands demo?

    All the best,
    Vlad
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Roy Halvorsen
    Roy Halvorsen avatar
    83 posts
    Member since:
    Oct 2008

    Posted 30 Aug 2010 Link to this post

    Yes, I have. Nothing there covering my first question. And if it is, it's not easy to find ...
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Aug 2010 Link to this post

    Hi,

     In MVVM pattern you should use commands and the example shows how to use various RadGridView commands. 

    Sincerely yours,
    Vlad
    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
  6. Roy Halvorsen
    Roy Halvorsen avatar
    83 posts
    Member since:
    Oct 2008

    Posted 31 Aug 2010 Link to this post

    I still can not find anything about RowDetailsTemplate and Commands. And, I am not allowed to have UIElements in my ViewModel. Maybe a support ticket would be helpful?

    Roy
  7. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 02 Sep 2010 Link to this post

    Hello Roy Halvorsen,

    Find attached a sample project. Hope it will get you started.

    Greetings,
    Veselin Vasilev
    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
  8. Jason
    Jason avatar
    1 posts
    Member since:
    Nov 2011

    Posted 15 Nov 2011 Link to this post

    After downloading the Telerik sample application mentioned above [rowdetailstemplate-mvvm-commands.zip], I discovered that it does not cancel pending changes.

    I added a few additional characters inside one of the textboxes and clicked "Cancel" expecting that my changes would be lost, but instead my changes were persisted?

    Please fix the code in this Telerik sample so that we can see how to correctly implement the "Cancel" button within a WPF application.

    Kind Regards
Back to Top
UI for WPF is Visual Studio 2017 Ready