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

"Arrange with infinity or NaN size" error

2 Answers 153 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Edwin
Top achievements
Rank 1
Edwin asked on 14 Mar 2013, 04:21 PM
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 Answers, 1 is accepted

Sort by
0
Edwin
Top achievements
Rank 1
answered on 15 Mar 2013, 03:48 AM
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
0
Peter
Telerik team
answered on 19 Mar 2013, 01:30 PM
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.
Tags
PageView
Asked by
Edwin
Top achievements
Rank 1
Answers by
Edwin
Top achievements
Rank 1
Peter
Telerik team
Share this question
or