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

RowDetailsTemplate and Insert/Update

6 Answers 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Roy Halvorsen
Top achievements
Rank 1
Roy Halvorsen asked on 30 Aug 2010, 02:16 PM
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?

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Aug 2010, 02:32 PM
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
0
Roy Halvorsen
Top achievements
Rank 1
answered on 30 Aug 2010, 02:38 PM
Yes, I have. Nothing there covering my first question. And if it is, it's not easy to find ...
0
Vlad
Telerik team
answered on 30 Aug 2010, 03:11 PM
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
0
Roy Halvorsen
Top achievements
Rank 1
answered on 31 Aug 2010, 09:06 AM
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
0
Veselin Vasilev
Telerik team
answered on 02 Sep 2010, 01:57 PM
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
0
Jason
Top achievements
Rank 1
answered on 15 Nov 2011, 10:21 PM
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
Tags
GridView
Asked by
Roy Halvorsen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Roy Halvorsen
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Jason
Top achievements
Rank 1
Share this question
or