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

Weird GridView exception

13 Answers 107 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Slavisa Radicevic
Top achievements
Rank 1
Slavisa Radicevic asked on 15 Apr 2010, 11:16 AM
Hello, since we put Q1 2010 build in our application, we are getting weird exception, currently noticed only on one screen. In other screens GridView works almost as before. This is the exception:

Error: Unhandled Error in Silverlight Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.InvalidOperationException: MeasureOverride of element 'Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel' should not return PositiveInfinity or NaN as its DesiredSize.
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

This exception happens when there are rows in the grid, when we remove ItemSource it works ok. Any help would be very appreciated, at least some suggestion where to look.

Thanks.

13 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Apr 2010, 07:07 AM
Hello,

Can you send us an example where we ca reproduce and debug this? Can you try our latest internal build to see what will be the result?

Greetings,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Slavisa Radicevic
Top achievements
Rank 1
answered on 21 Apr 2010, 09:33 AM
hello,
here is the ticket number with application link and log in information: 302351
steps to reproduce bug:
when you log click 'next' and then 'finish'
clik menu item 'Customers' -> 'All Customers'
select any row and then click 3rd icon (Contacts)
0
Vlad
Telerik team
answered on 21 Apr 2010, 09:51 AM
Hello,

I've checked your site and indeed there is an error in this case - can you try the latest build instead (or wait for our upcoming official service pack later today)? Since I don't know how the grid is declared and/or bound in your case I'm not sure if I will able to give any more information about reason unless you send us small example project where we can reproduce the exception.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Slavisa Radicevic
Top achievements
Rank 1
answered on 21 Apr 2010, 10:37 AM
Hello,
Thanks for looking at the application. I will wait for the service pack then, and see if application, maybe, starts to work. If it doesn't, I will try to make small app and send it to you.
0
Slavisa Radicevic
Top achievements
Rank 1
answered on 28 Apr 2010, 02:19 PM
Hello,
I found what caused the error, but I haven't found out why. The problem was in the style for RadGridView, that looked like this:
<Style x:Key="ListScreenGridViewData" TargetType="grid:RadGridView"
        <Setter Property="DataLoadMode" Value="Asynchronous" /> 
        <Setter Property="ScrollMode" Value="Deferred" /> 
        <Setter Property="Height" Value="460" /> 
        <Setter Property="Background" Value="#FFDDE7F4" /> 
 </Style> 
When I removed DataLoadMode property, RadGridView started to work. I don't know why did this affect grid view, but important thing is that it works now.
0
yjh
Top achievements
Rank 1
answered on 21 May 2010, 04:59 PM
Place a radgridview in a stackpanel,then click column header to sort,the exception will occur. 

I think it is busy indicator cause this.
0
yjh
Top achievements
Rank 1
answered on 22 May 2010, 07:37 AM
I forget to say,tht radgridview should not set height and width to reproduce the exception.
0
Yordanka
Telerik team
answered on 25 May 2010, 10:20 AM
Hello,

Unfortunately, we were unable to reproduce the exception. Could you give us more details about the data or send a sample application? Also, could you try to get the exception with our latest internal build (version 0521)?

Kind regards,
Yordanka
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
yjh
Top achievements
Rank 1
answered on 31 May 2010, 02:52 AM
To reproduce the exception, just change the LayoutRoot grid to stackpanel in

http://www.telerik.com/community/forums/silverlight/gridview/server-side-paging-sorting-example.aspx

which attached project by Vlad.
0
Yordanka
Telerik team
answered on 31 May 2010, 09:32 AM
Hi yjh,

We managed to get the exception and it was fixed immediately. The fix will be included in our incoming SP2 this week. Thank you for the feedback.

Sincerely yours,
Yordanka
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Fabrice Marguerie
Top achievements
Rank 1
answered on 28 Jun 2010, 02:54 PM
Hi,

Is this fixed in version 2010.2.609.1040?
I get the same error with this version.

Is there a workaround?

Regards,
Fabrice
0
Yordanka
Telerik team
answered on 29 Jun 2010, 09:43 AM
Hello Fabrice Marguerie,

The problem was resolved in our Q1 2010 SP2 (version .603) and respectively our Q2 2010 Beta (version .609) contains the fix. We just try it and everything works fine - no such exception occurs.
Please, give us more details about your case or send a sample application where the problem can be seen.

Greetings,
Yordanka
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fabrice Marguerie
Top achievements
Rank 1
answered on 29 Jun 2010, 12:08 PM
I think that my case is different. I'll submit a support request with a code sample.

Thanks.
Tags
GridView
Asked by
Slavisa Radicevic
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Slavisa Radicevic
Top achievements
Rank 1
yjh
Top achievements
Rank 1
Yordanka
Telerik team
Fabrice Marguerie
Top achievements
Rank 1
Share this question
or