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

Panel visibility to collapse

4 Answers 396 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 17 Dec 2009, 08:35 AM

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

 

4 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 18 Dec 2009, 08:32 AM
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.
0
Jack
Top achievements
Rank 1
answered on 18 Dec 2009, 03:27 PM
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
0
Victor
Telerik team
answered on 21 Dec 2009, 03:47 PM
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.
0
Jack
Top achievements
Rank 1
answered on 22 Dec 2009, 07:14 AM
Thanks Victor,

It works well.

Regards,
Jack
Tags
Panel
Asked by
Jack
Top achievements
Rank 1
Answers by
Victor
Telerik team
Jack
Top achievements
Rank 1
Share this question
or