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

Edit Mode for the new added row

4 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Raffaele
Top achievements
Rank 1
Raffaele asked on 05 May 2011, 02:50 PM
I just upgrading from Q3 2010 to Q1 2011 of Silverlight Controls and I saw an unexpected behavior for the RadGridView.

I use the GridView in a MVVM application and when I add an element to the ObservableCollection in binding to the RadGridView, in the Q3 2010 version the new item goes automatically in edit mode. Now, with the Q1 2011 version, it doesn't go in edit mode and I am problem to switch in edit mode because my application is a pure MVVM and doesn't have code behind to call the BeginEdit method.

Can you confirm that you changed this behavior in the latest version? Can you help me?

4 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 06 May 2011, 12:58 PM
Hello Raffaele,

RadGridView doesn't behave this way. I've just tested with 2010.Q3 assemblies and all I get while adding new item to an ObservableCollection<T> is just another row in the grid.
In order to bring an item into edit mode you should call BeginEdit(), but this requires some custom code.
Could you please provide with a little bit more information about your project?

Best wishes,
Nedyalko Nikolov
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
Raffaele
Top achievements
Rank 1
answered on 10 May 2011, 03:29 PM
When I add a new row, the new object added to the collection is not valid because one property is empty and it's required. So I need that the RadGridView goes in edit mode to allow the inserting of a valid value. This is a problem because the GridView doesn't recognize the property as invalid when I add a new object, so also if I set BeginEdit(), it allow me to undo the edit mode using ESC key and returning to an invalid value (empty) for my property.
0
Nedyalko Nikolov
Telerik team
answered on 12 May 2011, 03:24 PM
Hello Raffaele,

Could you please provide me with a little bit more info about your project?
I need more info about how do you perform the validation and how do you add the new item.
Thank you in advance.

Best wishes,
Nedyalko Nikolov
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
Abhishek
Top achievements
Rank 1
answered on 15 Jun 2011, 12:30 PM
Hello, My requirement is that I have a RadGridView and I want to add a new row in that on some other button click,
How can I do that?
Tags
GridView
Asked by
Raffaele
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Raffaele
Top achievements
Rank 1
Abhishek
Top achievements
Rank 1
Share this question
or