This is a migrated thread and some comments may be shown as answers.

[Solved] Value does not fall within the expected range

2 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrik
Top achievements
Rank 1
Patrik asked on 26 Jul 2011, 08:05 AM
Hello Telerik!

We have updated to Q2 2011 and since then we get an argument exception whenever we try to show a RadWindow with a RadDocking in it. The exception occurs on the line "var desiredSize = base.MeasureOverride(availableSize);" in the file WindowPresenterBase.cs on line 195.

The debug output produces the following two lines just before the main exception:
A first chance exception of type 'System.ArgumentNullException' occurred in Telerik.Windows.Controls.Docking
A first chance exception of type 'System.ArgumentException' occurred in System.Windows.dll


I have no idea whatsoever where these errors occur and they started when we updated to the latest release. We have a separate Theme-dll though which compiles and run fine with the new release, but I had to make a few small changes in the RadDocking control template for it in order to work. Are there any more changes in the control templates I should be aware of?

The RadWindows we are showing are not declared in XAML by the way.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jul 2011, 08:29 AM
Hi,

 I'm not sure how this is related to RadGridView. Can you clarify?

All the best,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Patrik
Top achievements
Rank 1
answered on 26 Jul 2011, 08:38 AM
Hello,

I think the stack trace showed that it was inside the Telerik Docking assembly. But now I tried building against the latest build (2011_2_0725_DEV_hotfix) and the error seems to have vanished. Maybe it had something to do with RadWindow after all?

Thanks for quick answer anyway!

/Patrik
Tags
GridView
Asked by
Patrik
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Patrik
Top achievements
Rank 1
Share this question
or