Hi
I have a tabControl with 2 tabItems. Each of which contains a GridView that is bound to a RIA datasource.
When I switch tabItem for the first time I will get the following error:
If I ignore the error the tabItem is changed and the corrosponding GridView is loaded and everything is fine. I can then swich between TabItems without any further errors occuring.
This is mighty strange, is there anyway I can prevent the error from occuring?
Thank you for any help.
I have a tabControl with 2 tabItems. Each of which contains a GridView that is bound to a RIA datasource.
<
telerik:RadTabControl
>
<
telerik:RadTabItem
Header
=
"Tab 1"
>
<
telerik:RadGridView
.... />
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Header
=
"Tab 2"
>
<
telerik:RadGridView
.... />
</
telerik:RadTabItem
>
</
telerik:RadTabControl
>
When I switch tabItem for the first time I will get the following error:
Microsoft JScript runtime error: Unhandled Error in Silverlight Application Object does not match target type. at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.EventInfo.RemoveEventHandler(Object target, Delegate handler)
at Telerik.Windows.Data.WeakEvent.WeakListener`1.Unsubscribe()
at Telerik.Windows.Controls.GridView.GridViewScrollViewer.OnUnloaded(Object sender, RoutedEventArgs 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)
If I ignore the error the tabItem is changed and the corrosponding GridView is loaded and everything is fine. I can then swich between TabItems without any further errors occuring.
This is mighty strange, is there anyway I can prevent the error from occuring?
Thank you for any help.