Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Issue: BusyIndicator with uncommited new row in Datagrid throws exception [17858]

$
0
0
Hi,
In my View
I have a datagrid and a 'Undo' button. On 'Undo' I am showing a BusyIndicator.
Suppose,
1) I try to add a new row in the datagrid
2) Datagrid row goes into the error state because of some validation failure
3) While datagrid is in edit mode, without loosing focus on the datagrid, I presses a shortcut 'Ctrl+Z' to Undo changes
 
Following exception occurs:-
System.Windows.Media.Animation.AnimationException: Cannot animate the 'IsEnabled' property on a 'System.Windows.Controls.ContentControl' using a 'System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames'. For details see the inner exception. ---> System.InvalidOperationException: 'NewItemPlaceholderPosition' is not allowed during a transaction begun by 'AddNew'.
 
Actually on DataGrid LostkeyboardFocus i explicitly CommitEdit and CommitNew for the datagrid. So, if I press the 'Undo' button with mouse everything works fine.
 
But if I presses a shortcut while datagrid is in edit mode and focus is still in the datagrid, then the BusyIndicator tries to change IsEnabled of the datagrid and the exception occurs.
 
Please help me if anyone has a solution
Comments: ** Comment from web user: BoucherS **

Hi,

Can you submit a sample of the bug ? Does it happens only with a DataGrid and a BusyIndicator ? Are you using the Xceed WPF DataGrid or the Microsoft DataGrid ?


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>