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

How to switch Grid View for View Mode in MVVM patter

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 19 Jan 2012, 01:07 PM
Hello,

I am using RadGridView for WPF. After changing cell's value in the grid and selecting another control (for example dropdown list or button on the same window) row is still in editable mode and changes in the cell is not applyed to corresponding model (I am using default binding). How could I force Grid to switch from Edit mode back to view mode on losing focus or when some command is executed (for example, command that is binded to the button).

Thanks,
Alexey Smirnov

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 21 Jan 2012, 04:01 PM
Hi Alexey,

Generally RadGridView has a property called "ActionOnLostFocus" which default value is "CommitEdit". Could you confirm that you did not change this property? If this property is set to "CommitEdit" and RadGridView does not commit edit when another control gets focus I'll need a sample project which I can debug on my side in order to see what is going on?
Thank you in advance.

Greetings,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Alexey
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or