Strange behavior with RadLayoutControl

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    13 posts
    Member since:
    Aug 2010

    Posted 18 Aug 2015 Link to this post

    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.

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 19 Aug 2015 Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jaime
    Jaime avatar
    1 posts
    Member since:
    Sep 2015

    Posted 08 Sep Link to this post

    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

  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 08 Sep Link to this post

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