PageLayout has layout problems when switching from Visible=False to Visible=True

6 posts, 1 answers
  1. Rémi
    Rémi avatar
    24 posts
    Member since:
    May 2015

    Posted 19 Feb Link to this post

    Hi,

     

    I have a UserControl including a RadPageLayout. The RadPageLayout is built as the following : 1 one row with 2 layoutColumns and each layoutColumn has "x" rows. When I simply display it, everything is ok.

    But in my scenario I don't want to display the UserControl including the RadPageLayout immediatly, so I set its Visible property to False. Then when I set its Visible property to True (by clicking on a button for example) the RadPageLayout layout is broken : the two layoutColumns don't stand side by side anymore.

    So to summarize, if at the beginning my UserControl's Visible property is set to True then it's ok, but it's set to False then True I have layout issue.

     

    Could you help me to find a solution or a workaround ?

     

    Thanks,

    Rémi

     

  2. Rémi
    Rémi avatar
    24 posts
    Member since:
    May 2015

    Posted 19 Feb in reply to Rémi Link to this post

    It seems that the RadPageLayout inner div's classes are not loaded (ie: t-container, t-row, t-col, t-col-6 etc...).
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rémi
    Rémi avatar
    24 posts
    Member since:
    May 2015

    Posted 19 Feb in reply to Rémi Link to this post

    Well, my UserControl is inside an UpdatePanel and this UpdatePanel seems to be the problem... If I remove it I have no more problem...
  5. Rémi
    Rémi avatar
    24 posts
    Member since:
    May 2015

    Posted 23 Feb in reply to Rémi Link to this post

    The problem is that i need this UpdatePanel and I need the PageLayout to be not visible at the beginning. The WebResource of the PageLayout is not loaded and I don't see any errors.

    Do you have any idea ?

  6. Answer
    Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    278 posts

    Posted 23 Feb Link to this post

    Hello Rémi,

    The issue in your scenario is caused by the fact that the styles of the RadPageLayout control are not loaded on initial page load. Because of performance optimizations, we check which controls are placed on the page and we load from the dll only those styles that are currently needed. As the User control with the RadPageLayout is not visible on initial load, the styles for this control are not loaded. What I can suggest you as a workaround is to place another empty RanPagelayout on your page. This way the styles will be initially loaded and the layout should appear as expected.

    Regards,
    Veselin Tsvetanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Rémi
    Rémi avatar
    24 posts
    Member since:
    May 2015

    Posted 23 Feb in reply to Veselin Tsvetanov Link to this post

    Your workaround does the trick, thank you !
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017