"Arrange with infinity or NaN size" error

3 posts, 0 answers
  1. Edwin
    Edwin avatar
    27 posts
    Member since:
    Jun 2012

    Posted 14 Mar 2013 Link to this post

    Hi
    I have just upgraded from 2011.2.11.0712 to Q1 2013.  Then my application breaks.  When one of the form loads, an error message popped up saying "Arrange with infinity or NaN size (parent: Telerik.WinControls.UI.RadPageViewStackElement, this: Telerik.WinControls.UI.RadPageViewStackItem)"

    In designer view inside Visual Studio, I got the same error with call stack

    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
    at Telerik.WinControls.UI.RadPageViewStackElement.ArrangeItems(RectangleF clientRect)
    at Telerik.WinControls.UI.RadPageViewElement.PerformArrange(RectangleF clientRect)
    at Telerik.WinControls.UI.RadPageViewElement.ArrangeOverride(SizeF finalSize)
    at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
    at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)
    at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
    at Telerik.WinControls.RadElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
    at Telerik.WinControls.RadControl.OnLoad(Size desiredSize)
    at Telerik.WinControls.RadControl.LoadElementTree(Size desiredSize)
    at Telerik.WinControls.RadControl.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.ControlCollection.Add(Control value)
    at System.Windows.Forms.Form.ControlCollection.Add(Control value)
    at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

    Error list showed the error in designer.cs
    Following the line number, the error came from this line

                this.Controls.Add(this.tableLayoutPanel1);

    tableLayoutPanel1 is of type System.Windows.Forms.TableLayoutPanel


    What does that mean and how to fix?

    Regards
    Edwin
  2. Edwin
    Edwin avatar
    27 posts
    Member since:
    Jun 2012

    Posted 14 Mar 2013 Link to this post

    Hi

    After going into the Edit UI Element of the RadPageView and then click OK, the designer.cs seems got rebuilt and the problem has gone.

    Cheers
    Edwin
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 19 Mar 2013 Link to this post

    Hi Edwin,

    I can confirm that this is a correct solution for this issue because most likely there are some settings serialized in your application that affect the layout and EditUI element will rebuild the designer.cs correctly.

    Should you have any other questions or suggestions, do not hesitate to contact us.

    Regards,
    Peter
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top