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

ArrangeOverride Recursion

3 Answers 17 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason Intardonato
Top achievements
Rank 1
Jason Intardonato asked on 27 May 2014, 09:40 PM
In reference to the ArrangeOverride method the documentation says:

The rectangle occupied by the element. Usually finalSize.
Should you return different size, the Layout system will restart
measuring and rearraning the items. That could lead to infinite
recursion.

I am occasionally seeing this. I have a grid that contains a single hierarchical child grid.

Type A
Type B
related on A.Foo, B.Foo

I don't know how to troubleshoot the root cause, but I can see that ArrangeOverride is being called in an infinite loop.

WTF?

Thanks.

- Jay

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 28 May 2014, 05:28 AM
Hi,

Recently, we had a similar problem with RadGridView, which entered infinite layout cycle. It was reproducible when UI Virtualization is disabled and row count is larger than ~150, but we fixed it as soon as it was reported. Can you please confirm which version you are using? If you experience this erroneous behavior  even with the latest version, it will be great if you can send us a sample project to debug.

Regards,
Ivan Ivanov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Jason Intardonato
Top achievements
Rank 1
answered on 28 May 2014, 02:48 PM
Thanks for the reply Ivan. 

We're using:
Telerik UI for WPF
2014_1_0331

The scenarios I saw this occurring also seemed to depend on the number of rows being loaded, or perhaps more specifically whether or not those rows were causing the grid to vertically scroll off screen.  I have a feeling that may have something to do with it.

I had the following property set on the gridview at the time:

EnableRowVirtualization="False"

and the grid was loading around 300 rows in the main grid, each having 1 child row in the hierarchical child grid.

- Jay
0
Ivan Ivanov
Telerik team
answered on 28 May 2014, 03:16 PM
Hi,

Could you please download the latest internal build and test with it (2014_1_0526)? The issue that I have mentioned was reproducible with similar parameters, so that I believe that things will work fine with this version.

Regards,
Ivan Ivanov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Jason Intardonato
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Jason Intardonato
Top achievements
Rank 1
Share this question
or