This question is locked. New answers and comments are not allowed.
Jon Bergquist
Top achievements
Rank 1
Jon Bergquist
asked on 20 Jan 2009, 02:28 AM
Hi - I'm getting this error from the grid when I remove it. More specifically, I have a grid on a page that is hosted within another page. Clicking on a row within the grid will cause another page to be loaded, replacing the page that contains the grid with another page. When that occurs the following msg is fired. It seems the grid doesn't like being removed when it is firing the event. If I call the same code with a button click it works fine.
Unhandled Error in Silverlight 2 Application Value does not fall within the expected range. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual) at System.Windows.UIElement.TransformToVisual(UIElement visual) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ScrollHorizontallyIfNeeded(UIElement visual) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(UIElement visual, Rect rectangle) at Telerik.Windows.Controls.GridView.GridViewScrollViewer.HandleCellRequestForBringIntoView(UIElement focusedCell) at Telerik.Windows.Controls.GridView.GridViewScrollViewer.HandleRequestForBringIntoView(Object sender, RadRoutedEventArgs e) at Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target) at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs) at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs) at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain) at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args) at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args) at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e) at Telerik.Windows.Controls.GridView.GridViewCell.OnGotFocus(RoutedEventArgs e) at System.Windows.Controls.Control.OnGotFocus(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Unhandled Error in Silverlight 2 Application Value does not fall within the expected range. at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData) at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData) at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual) at System.Windows.UIElement.TransformToVisual(UIElement visual) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ScrollHorizontallyIfNeeded(UIElement visual) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(UIElement visual, Rect rectangle) at Telerik.Windows.Controls.GridView.GridViewScrollViewer.HandleCellRequestForBringIntoView(UIElement focusedCell) at Telerik.Windows.Controls.GridView.GridViewScrollViewer.HandleRequestForBringIntoView(Object sender, RadRoutedEventArgs e) at Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target) at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs) at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs) at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain) at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args) at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args) at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e) at Telerik.Windows.Controls.GridView.GridViewCell.OnGotFocus(RoutedEventArgs e) at System.Windows.Controls.Control.OnGotFocus(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
12 Answers, 1 is accepted
0
Hello Jon,
I've attached the latest versions of our dlls. If the error shows again, please send us the sample project demonstrating the error.
Regards,
Jordan
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I've attached the latest versions of our dlls. If the error shows again, please send us the sample project demonstrating the error.
Regards,
Jordan
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon Bergquist
Top achievements
Rank 1
answered on 25 Jan 2009, 08:27 PM
I'm getting errors on the load:
Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified. File name: 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' at Telerik.Windows.Data.RecordManager.Initialize(TableDefinition newTableDefinition, Record masterRecord) at Telerik.Windows.Data.RecordManager..ctor(TableDefinition tableDefinition, Record masterRecord) at Telerik.Windows.Controls.DataControl.get_RecordManager() at Telerik.Windows.Controls.DataControl.SetItemsControlData() at Telerik.Windows.Controls.GridView.GridViewDataControl.SetItemsControlData() at Telerik.Windows.Controls.DataControl.OnApplyTemplate() at Telerik.Windows.Controls.GridView.GridViewDataControl.OnApplyTemplate() at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
The file version of the System.Windows.Controls.Data dll is 2.0.31005.0. This is the file that was installed from the silverlight tool installer. Does your control require version 2.0.5.0?
Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified. File name: 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' at Telerik.Windows.Data.RecordManager.Initialize(TableDefinition newTableDefinition, Record masterRecord) at Telerik.Windows.Data.RecordManager..ctor(TableDefinition tableDefinition, Record masterRecord) at Telerik.Windows.Controls.DataControl.get_RecordManager() at Telerik.Windows.Controls.DataControl.SetItemsControlData() at Telerik.Windows.Controls.GridView.GridViewDataControl.SetItemsControlData() at Telerik.Windows.Controls.DataControl.OnApplyTemplate() at Telerik.Windows.Controls.GridView.GridViewDataControl.OnApplyTemplate() at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
The file version of the System.Windows.Controls.Data dll is 2.0.31005.0. This is the file that was installed from the silverlight tool installer. Does your control require version 2.0.5.0?
0
Hi Jon,
Please add reference to the attached dll to resolve this.
Sincerely yours,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please add reference to the attached dll to resolve this.
Sincerely yours,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon Bergquist
Top achievements
Rank 1
answered on 26 Jan 2009, 04:38 PM
Thanks for quick reply. So where did that dll come from? Thats a new version that does not install with the SDK.
I'm still having a slight different problem now. It happens with one of my templated columns. If I remove that column the problem goes away, but it was working fine with the previous version. Here is the xaml:
<UserControl.Resources>
<converters:CurrencyConverter x:Key="currencyConverter" />
<Style x:Key="GridHyperLink" TargetType="telerikGridView:GridViewCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerikGridView:GridViewCell">
<HyperlinkButton Foreground="Navy" TargetName="{Binding CustomerId}" Content="{Binding Name}" Click="HyperlinkButton_Click"></HyperlinkButton>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<telerik:RadGridView Name="CustomerGrid" ColumnsWidthMode="Fill" ShowColumnHeaders="True" AutoGenerateColumns="False" Grid.Row="1" Width="Auto" SelectionChanged="RadGridView_SelectionChanged">
<telerik:RadGridView.Columns>
<telerikGridView:GridViewDataColumn HeaderText="Customer Name" CellStyle="{StaticResource GridHyperLink}" />
<telerikGridView:GridViewDataColumn HeaderText="Address" UniqueName="Address" />
<telerikGridView:GridViewDataColumn HeaderText="Address 2" UniqueName="Address2" />
<telerikGridView:GridViewDataColumn HeaderText="City" UniqueName="City" />
<telerikGridView:GridViewDataColumn HeaderText="State" UniqueName="State" />
<telerikGridView:GridViewDataColumn HeaderText="Zip" UniqueName="Zip"/>
<telerikGridView:GridViewDataColumn HeaderText="Octel" UniqueName="Octel" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
I'm still having a slight different problem now. It happens with one of my templated columns. If I remove that column the problem goes away, but it was working fine with the previous version. Here is the xaml:
<UserControl.Resources>
<converters:CurrencyConverter x:Key="currencyConverter" />
<Style x:Key="GridHyperLink" TargetType="telerikGridView:GridViewCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerikGridView:GridViewCell">
<HyperlinkButton Foreground="Navy" TargetName="{Binding CustomerId}" Content="{Binding Name}" Click="HyperlinkButton_Click"></HyperlinkButton>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<telerik:RadGridView Name="CustomerGrid" ColumnsWidthMode="Fill" ShowColumnHeaders="True" AutoGenerateColumns="False" Grid.Row="1" Width="Auto" SelectionChanged="RadGridView_SelectionChanged">
<telerik:RadGridView.Columns>
<telerikGridView:GridViewDataColumn HeaderText="Customer Name" CellStyle="{StaticResource GridHyperLink}" />
<telerikGridView:GridViewDataColumn HeaderText="Address" UniqueName="Address" />
<telerikGridView:GridViewDataColumn HeaderText="Address 2" UniqueName="Address2" />
<telerikGridView:GridViewDataColumn HeaderText="City" UniqueName="City" />
<telerikGridView:GridViewDataColumn HeaderText="State" UniqueName="State" />
<telerikGridView:GridViewDataColumn HeaderText="Zip" UniqueName="Zip"/>
<telerikGridView:GridViewDataColumn HeaderText="Octel" UniqueName="Octel" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
0
Hi Jon,
Please set DataMemberPath="Name" for this column and let me know about the result.
Best wishes,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please set DataMemberPath="Name" for this column and let me know about the result.
Best wishes,
Vlad
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon Bergquist
Top achievements
Rank 1
answered on 26 Jan 2009, 07:00 PM
That seemed to do the trick. Thanks for that. I have a few questions about these changes:
1) Where did that System.Windows.Controls.Data DLL come from? It is not included in the latest version of the SL SDK.
2) When will those new Telerik controls that you attached be "officially" available? Is it available for download from our accounts? I will need to understand this so I can share with my team.
3) Is DataMemberPath supposed to replace UniqueName field in XAML? I realize you are on beta with the grid but the documentation is very scant. What is the best way to learn best practice for implementing your SL controls in general so I can help others on my team? Personally I have just done a lot of manual searching but I'm sure there is a better way.
Thanks
Jon
1) Where did that System.Windows.Controls.Data DLL come from? It is not included in the latest version of the SL SDK.
2) When will those new Telerik controls that you attached be "officially" available? Is it available for download from our accounts? I will need to understand this so I can share with my team.
3) Is DataMemberPath supposed to replace UniqueName field in XAML? I realize you are on beta with the grid but the documentation is very scant. What is the best way to learn best practice for implementing your SL controls in general so I can help others on my team? Personally I have just done a lot of manual searching but I'm sure there is a better way.
Thanks
Jon
0
Jon Bergquist
Top achievements
Rank 1
answered on 27 Jan 2009, 03:10 AM
I also noticed a minor new problem with latest datagrid dll's. This wasn't happening before. The grid does not want to expand to fill the size of its container. It actually does but It creates an extra blank column header to fill the remaining space. I'm not sure if this is an actual column header (it doesn't produce a column) but it appears to have the same style. Here is the xaml:
| <blacklight:DragDockPanel Margin="15" Style="{StaticResource DragDockPanelStyle}"> |
| <Grid> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="23"/> |
| <RowDefinition/> |
| </Grid.RowDefinitions> |
| <TextBlock Style="{StaticResource MyTextBlockStyle}" Name="TBMyTickets">My Open Tickets</TextBlock> |
| <grid:RadGridView Name="GridMyTickets" Grid.Row="1" ColumnsWidthMode="Fill" AutoGenerateColumns="False" ShowGroupPanel="False" Margin="5,5,5,5"> |
| <grid:RadGridView.Columns> |
| <telerikGridView:GridViewDataColumn HeaderText="Ticket Id" UniqueName="TicketId"/> |
| <telerikGridView:GridViewDataColumn HeaderText="Customer" UniqueName="CustomerName" /> |
| <telerikGridView:GridViewDataColumn HeaderText="Date Created" UniqueName="DateCreated"/> |
| <telerikGridView:GridViewDataColumn HeaderText="Status" UniqueName="StatusName"/> |
| </grid:RadGridView.Columns> |
| </grid:RadGridView> |
| </Grid> |
| </blacklight:DragDockPanel> |
0
Hi Jon Bergquist,
thank you for your report. Yes - this is a non-official version and may have such little glitches. We will take care to fix them for the official release which is scheduled for the end of February.
The new System.Windows.Controls.Data dll is from the toolkit. it was released in December.2008. See more info here - http://blogs.msdn.com/scmorris/archive/2008/12/19/silverlight-2-datagrid-december-2008-release.aspx
About the UniqueName - yes this is obsolete now - you can use the DataMemberPath.
About the help - yes we are lacking the help articles right now. We are working on them in this very moment, so expect to have an official documentation for the Q1 release. For the moment the best way to learn is to look at source of the QSF sample and to ask whenever something is not clear.
We are doing a lot of investments in the GridView right now so in the next few months expect to see a lot of improvements in terms of the controls itself and its supporting resources (help, KB, samples, etc)
Sincerely yours,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
thank you for your report. Yes - this is a non-official version and may have such little glitches. We will take care to fix them for the official release which is scheduled for the end of February.
The new System.Windows.Controls.Data dll is from the toolkit. it was released in December.2008. See more info here - http://blogs.msdn.com/scmorris/archive/2008/12/19/silverlight-2-datagrid-december-2008-release.aspx
About the UniqueName - yes this is obsolete now - you can use the DataMemberPath.
About the help - yes we are lacking the help articles right now. We are working on them in this very moment, so expect to have an official documentation for the Q1 release. For the moment the best way to learn is to look at source of the QSF sample and to ask whenever something is not clear.
We are doing a lot of investments in the GridView right now so in the next few months expect to see a lot of improvements in terms of the controls itself and its supporting resources (help, KB, samples, etc)
Sincerely yours,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
SL
Top achievements
Rank 1
answered on 18 Feb 2009, 02:50 PM
It worked for me as well. However, we actually are not using the trial version but rather have a current subscription and now I get the Telerik Trial behavoir with Watermark on first load of the application. How can I get a release version of the binaries with this fix? Or is there a work around to turn off the trial behavior.
Thank you
Thank you
0
Hi Trent,
Please open a formal support ticket and we will send you our latest build.
Greetings,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please open a formal support ticket and we will send you our latest build.
Greetings,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SL
Top achievements
Rank 1
answered on 18 Feb 2009, 03:17 PM
Hi Vlad,
When I go to fill out a support ticket the GridView is not listed... is the RADUniformGrid the same thing? Or does it even matter?
Thank you.
When I go to fill out a support ticket the GridView is not listed... is the RADUniformGrid the same thing? Or does it even matter?
Thank you.
0
Hi Trent,
Most probably the grid is not listed due to beta stage of the product.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Most probably the grid is not listed due to beta stage of the product.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

