This question is locked. New answers and comments are not allowed.
Having recently upgraded to build 812, and SL3, and having taken advantage of the fixes to columnwidthmode=fill and proportional column widths, we are suddenly seeing the following exception, usually only early in the application load / initial page creation. Note that our grids are bound to ObservableCollections which are filled in with WCF asynchronous calls (using HTTP binding).
Any ideas why?
Thx,
Tim
Any ideas why?
| Error: An unknown error has occurred. |
| Detail: System.ArgumentException |
| Value cannot be negative, infinite, or NaN. |
| Parameter name: System.Windows.CustomDependencyProperty |
| at System.Windows.Controls.Primitives.RangeBase.OnLargeChangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) |
| at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue) |
| at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle, PropertyInvalidationReason reason) |
| at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) |
| at System.Windows.DependencyObject.SetValue(DependencyProperty property, Double d) |
| at System.Windows.Controls.Primitives.RangeBase.set_LargeChange(Double value) |
| at Telerik.Windows.Controls.GridView.ScrollBarStateController.UpdateScrollBar(ScrollBar scrollBar, ScrollBarProperties properties) |
| at Telerik.Windows.Controls.GridView.ScrollBarStateController.UpdateVerticalScrollBarsProperties(ScrollBarProperties properties) |
| at Telerik.Windows.Controls.GridView.GridViewScrollViewer.UpdateScrollBars() |
Thx,
Tim
11 Answers, 1 is accepted
0
Hi Tim,
Can you send us small example where we can reproduce and debug this?
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Can you send us small example where we can reproduce and debug this?
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tim
Top achievements
Rank 1
answered on 23 Sep 2009, 10:53 AM
It does not happen with any predictable pattern, yet, so I have not tried to reduce it to a simpler example. I was hoping others had seen it and knew what the problem is. It seems to be innocuous and we'll probably add it to the growing list of exceptions we'll silently swallow. The only predictable part so far has been there is not yet any data in the tables. We have not seen it once the ObservableCollection(s) have data.
Tim
Tim
0
Greg Phaling
Top achievements
Rank 1
answered on 23 Sep 2009, 06:29 PM
I am seeing this same exception. You can reproduce it with the online GridView demos. Run the Enable/Disable or Gridlines Visibility example (others do it as well, but not all of them). Un-maximize the browser, then resize it smaller vertically. As soon as the gridview is resized so that no data rows are visible, and only the column headers are showing, the exception is thrown.
Unfortunately I have not had a chance to try to fix or find a work-around for this.
Greg
0
Willem
Top achievements
Rank 1
answered on 24 Sep 2009, 11:50 AM
I'm experiencing the same problem. It happens when we run an animation that causes the grid to be very small for a short period of time. It's been bugging me for quite some time now, so I'm going to start a support ticket for this.
0
Hi,
I believe that we have fixed this problem and the fix is already available in our Latest Internal Build. It is available for download under you client account. I'm attaching a sample application with the latest binaries for your convenience.
Please give it a try and let us know how it goes.
Greetings,
Anastasia
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I believe that we have fixed this problem and the fix is already available in our Latest Internal Build. It is available for download under you client account. I'm attaching a sample application with the latest binaries for your convenience.
Please give it a try and let us know how it goes.
Greetings,
Anastasia
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Willem
Top achievements
Rank 1
answered on 24 Sep 2009, 12:10 PM
Hi,
That's fast! :)
I'm going to patch my installation.
Thanks for your help.
That's fast! :)
I'm going to patch my installation.
Thanks for your help.
0
Jamie
Top achievements
Rank 1
answered on 22 Oct 2009, 07:54 PM
Is there a workaround? Some of us may not be able to update the version being used.
Cheers
Cheers
0
Hi Jamie,
Unfortunately we are not aware of workaround for this so far.
Kind regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Unfortunately we are not aware of workaround for this so far.
Kind regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tim
Top achievements
Rank 1
answered on 23 Oct 2009, 12:19 PM
Here is an (admittedly ugly) workaround for app.xaml.cs:
Note the MouseEventArgs works around a wart in Silverlight. The UpdateScrollBars is for this particular problem.
Yes it is ugly. I admit that.
Tim
| public partial class App : Application |
| { |
| public App() |
| { |
| UnhandledException += Application_UnhandledException; |
| InitializeComponent(); |
| } |
| private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) |
| { |
| // NOTE: This will allow the application to continue running after an exception has been thrown |
| // but not handled. |
| if (!e.ExceptionObject.StackTrace.Contains("MouseEventArgs") && !e.ExceptionObject.StackTrace.Contains("UpdateScrollBars()")) |
| { |
| Deployment.Current.Dispatcher.BeginInvoke( |
| () => |
| { |
| ReportErrorToDOM(e); |
| }); |
| } |
| } |
| } |
Note the MouseEventArgs works around a wart in Silverlight. The UpdateScrollBars is for this particular problem.
Yes it is ugly. I admit that.
Tim
0
Jamie
Top achievements
Rank 1
answered on 23 Oct 2009, 02:07 PM
At least the user wont be aware of this issue with that "fix" :) . Thanks.
0
Jamie
Top achievements
Rank 1
answered on 23 Oct 2009, 02:07 PM
Thanks for checking.
