Hi,
I have a MVVM application which showed a strange behavior.
To reproduce it I "switched to event mode" which has:
In code behind I do nothing more than:
When I hit ESC twice - editing is ended and the "old values" are displayed - but the row still displays "invalid" (red exclamation mark, red background).
What I expect is that the row becomes valid since it has the original (valid) values after "CancelEdit" (Hitting ESC twice).
The second problem (in debug) I get a "ArgumentNullException" (Parameter instance must not be null) when I add a row without entering anything hit ESC twice.
Manfred
I have a MVVM application which showed a strange behavior.
To reproduce it I "switched to event mode" which has:
<telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Bearings}" AutoGenerateColumns="False" ShowInsertRow="True" ShowGroupPanel="False" RowValidating="RadGridView_RowValidating" CanUserDeleteRows="True" CanUserInsertRows="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Ordnungszahl" Width="*" DataMemberBinding="{Binding Ordnungszahl}" IsFilterable="True" SortMemberPath="Ordnungszahl" IsSortable="True" /> <telerik:GridViewDataColumn Header="BauartenCode" DataMemberBinding="{Binding BauartenCode}" Width="120" IsFilterable="False" IsSortable="True" /> <telerik:GridViewDataColumn Header="AussenDMCode" DataMemberBinding="{Binding AussendurchmCode}" Width="120" IsFilterable="False" IsSortable="False" /> <telerik:GridViewDataColumn Header="Stufe" DataMemberBinding="{Binding Stufe}" Width="120" IsFilterable="False" IsSortable="False" /> <telerik:GridViewDataColumn Header="Unterstufe" DataMemberBinding="{Binding Unterstufe}" Width="120" IsFilterable="False" IsSortable="False"/> </telerik:RadGridView.Columns> </telerik:RadGridView>In code behind I do nothing more than:
private void RadGridView_RowValidating(object sender, Telerik.Windows.Controls.GridViewRowValidatingEventArgs e) { e.IsValid = false; }When I hit ESC twice - editing is ended and the "old values" are displayed - but the row still displays "invalid" (red exclamation mark, red background).
What I expect is that the row becomes valid since it has the original (valid) values after "CancelEdit" (Hitting ESC twice).
The second problem (in debug) I get a "ArgumentNullException" (Parameter instance must not be null) when I add a row without entering anything hit ESC twice.
Manfred