Panel visibility to collapse

5 posts, 0 answers
  1. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 17 Dec 2009 Link to this post

    Hi all,

    I wish to do a hide a panel and this panel and its children is not painted and would not calculated in the layout.
    But when i try to set it as below:-
    pnlPlanPwd.RootElement.Visibility = Telerik.WinControls.

    ElementVisibility.Collapsed;
    the panel is still displayed on the form.

    Does anyone knows on any solution?

    Regards,
    Jack

     

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 18 Dec 2009 Link to this post

    Hello Jack,

    Thank you for writing. Please set the Visible property to false. This is a property of any Control.
    Write again if you need further assistance.

    All the best,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 18 Dec 2009 Link to this post

    Hi Victor,
    i got 2 panels top and bottom. I wanted the effect when top panel is visible false, the bottom panel will be pushed up.
    Because for radbuttons in radRibbonBar, when

    Telerik.WinControls.ElementVisibility.Collapsed;

    are set, those visible radbuttons are pushed to the left accordingly.

    So i am wondering whether the bottom panel can be pushed up accordingly.

    Regards,
    Jack
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 21 Dec 2009 Link to this post

    Hello Jack,

    Your both panels need to be docked to Top (for example) and you simply need to toggle the Visible property of the first panel. When you set it to false, it will disappear and the bottom panel will be shifted up. Please write again if you have other questions.

    All the best,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 22 Dec 2009 Link to this post

    Thanks Victor,

    It works well.

    Regards,
    Jack
Back to Top
UI for WinForms is Visual Studio 2017 Ready