ArrangeOverride Recursion

4 posts, 0 answers
  1. Jason Intardonato
    Jason Intardonato avatar
    5 posts
    Member since:
    Mar 2010

    Posted 27 May 2014 Link to this post

    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
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 28 May 2014 Link to this post

    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.
     
  3. Jason Intardonato
    Jason Intardonato avatar
    5 posts
    Member since:
    Mar 2010

    Posted 28 May 2014 in reply to Ivan Ivanov Link to this post

    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
  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 28 May 2014 Link to this post

    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.
     
Back to Top