We are using the Rad Grid View in our application.
We are experiencing an intermittent exception that seems to be related to the display of the validation message.
When in edit mode, if we move the mouse around causing the validation message to show and hide, it will eventually throw a nasty exception (see below)
Seems related to the visual state manager controlling the validation message.
Any ideas anyone?
Here is the exception detail:
Microsoft JScript runtime error: Unhandled Error in Silverlight Application Cannot resolve TargetProperty (Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color) on specified object. at MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
at System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
at System.Windows.Controls.ToolTip.OpenPopup()
at System.Windows.Controls.ToolTip.OnIsOpenChanged(Boolean isOpen)
at System.Windows.Controls.ToolTip.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
at System.Windows.Controls.ToolTipService.OpenAutomaticToolTip(Object sender, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Here is a snippet of XAML that shows how we are using the gridview. Note, the "OrderGrade" column, while in edit mode, is what caused the exception, but pretty sure it's not the only column with the issue.
We are experiencing an intermittent exception that seems to be related to the display of the validation message.
When in edit mode, if we move the mouse around causing the validation message to show and hide, it will eventually throw a nasty exception (see below)
Seems related to the visual state manager controlling the validation message.
Any ideas anyone?
Here is the exception detail:
Microsoft JScript runtime error: Unhandled Error in Silverlight Application Cannot resolve TargetProperty (Border.BorderBrush).(GradientBrush.GradientStops)[1].(GradientStop.Color) on specified object. at MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
at System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
at System.Windows.Controls.ToolTip.OpenPopup()
at System.Windows.Controls.ToolTip.OnIsOpenChanged(Boolean isOpen)
at System.Windows.Controls.ToolTip.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
at System.Windows.Controls.ToolTipService.OpenAutomaticToolTip(Object sender, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Here is a snippet of XAML that shows how we are using the gridview. Note, the "OrderGrade" column, while in edit mode, is what caused the exception, but pretty sure it's not the only column with the issue.
<telerik:RadGridView Grid.Row="1" ItemsSource="{Binding OrderGrades, Mode=TwoWay}" AutoGenerateColumns="False" IsBusy="{Binding Path=IsBusy}"
GroupPanelStyle="{StaticResource GridViewGroupPanel}" telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True"
SelectedItem="{Binding SelectedOrderGrade, Mode=TwoWay}" IsReadOnly="True" attachedBehaviors:SetSingleRowAdd.IsEnabled="True" ActionOnLostFocus="None">
<telerik:RadGridView.Columns >
<telerik:GridViewToggleRowDetailsColumn />
<telerik:GridViewDataColumn DataMemberBinding="{Binding OrderGradeName, Mode=TwoWay, ValidatesOnDataErrors=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}">
<telerik:GridViewDataColumn.Header>
<TextBlock Text="{StaticResource Translation.OrderGrade}" Foreground="{StaticResource Heading1FontBrush}" />
</telerik:GridViewDataColumn.Header>
...