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

Strange behavior with RadLayoutControl

3 Answers 192 Views
LayoutControl
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 19 Aug 2015, 03:17 AM

I'm using Visual Studio 2013 and Telerik UI for WinForms 2015.2.623.40.

I have a RadPageView with 4 tabs, each page view I would like to control my layout with a RadLayoutControl.  In the designer view I setup a RadPageView on my first tab and place various UI elements (RadButtons, RadTextBox, etc. etc.) and everything behaves as expected.  When I go to my second tab and setup a RadLayoutControl, it is almost as if the designer can see the layoutControlItems elements of the RadLayoutControl from the first page while I'm trying to setup the second page.  Not only that but if you do manage to put two RadLayoutControls on various pages, the event handler that deals with the resizing event seems to throw an exception.  Should I be able to use multiple RadLayoutControls in this way?

I've attached images, page1.png shows how I've setup a sample project with a form that has a pageview with four pages and a RadLayoutControl containing a RadButton, RadTextBox, RadRichTextBox, and a RadLabel; in page2.png I've clicked on the top right area and have selected layoutControlItem1 that is contained on the first RadPageView in the RadLayoutControl.

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Aug 2015, 10:27 AM
Hello Matthew,

Thank you for writing.

This is a known issue which is already resolved. If you upgrade to the latest version this will not occur. The issue details are located here. The possible workaround for the old version is to add the layout control in a separate user control and then add it to the main form. 

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik

0
Jaime
Top achievements
Rank 1
answered on 08 Sep 2016, 11:37 AM

Hello there!

I seem to encounter the same problem, depends on the tab that is preselected by default. The first tab to show displays correctly the layout control but when clicking on the other tab (that also contains a layout control) it shows the controls in random sizes. If this second tab is set as default, it will display all its controls correctly but it will change all the ones in the other tab.

I do have the latest version of Telerik and I am working on a Winforms project. Please let me know what do I need to do.

Thanks in advance,

Jaime

0
Dimitar
Telerik team
answered on 08 Sep 2016, 12:29 PM
Hi Jaime,

Thank you for writing.

I have tested this and I was able to add the controls without issues. I have recorded a small video that shows this. Could you please check it and let me know what I am doing wrong?

Perhaps it would be better to open a support ticket where you can attach a project that reproduces this.

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
LayoutControl
Asked by
Matthew
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Jaime
Top achievements
Rank 1
Share this question
or