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

Setting ControlPanel height

3 Answers 103 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sean
Top achievements
Rank 1
Sean asked on 11 Aug 2009, 03:14 AM
I am dynamically adding RadPanelBarGroupElements to a RadPanelBar that is set to the Explorer style. Each RadPanelBarGroupElement's control panel contains a large usercontrol that is approx 700px in height. The first few added are displayed with scrollbars in the content panel when expanded which is fine. However as more RadPanelBarGroupElements are added, the bottom ones have a very tiny display space, while the RadPanelBarGroupElements at the top when expanded still display a relatively large viewing area.
Is there a way for me to specify the minimum space that must be displayed?
       
        private void LoadApprovalIssue(ApprovalBe.ApprovalIssueRow issue) 
        { 
            ApprovalIssueControl issueControl = new ApprovalIssueControl(ref this.myActivity, approvalTypeCode, ref this.myApproval, issue.IssueNo); 
           

            RadPanelBarGroupElement issueTab = new RadPanelBarGroupElement(); 
            issueTab.Caption = "TEST";  
            issueTab.EnableHostControlMode = true
            issueTab.ContentPanel.Controls.Add(issueControl); 
            issueTab.ContentPanel.AutoScroll = true

            this.pnlbarIssues.Items.Insert(0,issueTab); 
 
        } 


3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Aug 2009, 02:50 PM
Hi Sean,

Currently, the content area of a group cannot be resized. This feature is already logged as a feature request, but we cannot provide you with a specific time-frame when it will be implemented.

If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jay Jose
Top achievements
Rank 1
answered on 10 Sep 2009, 11:44 AM
Hi Nikolay,

Do you have solution for this now? I need to set the height of the ContentPanel dynamically and it should be more than 3000 pixels.

Regards,
Jay
0
Boyko Markov
Telerik team
answered on 11 Sep 2009, 07:32 AM
Hi Jay Jose,

Unfortunately, we do not have a solution to dynamically set the content panel height in RadPanelBar when it is in expolorer bar or vs2005 style modes. I suggest you use ListBar style for such scenarios because the content panel height is taking the maximum available height.

Let me explain to you using an example how the content panel height is calculated when the panelbar is in ListBar style:

Let's say that our PanelBar height is 200px. We add 5 RadPanelBarGroupElements to the panel bar Items collection. RadPanelBarGroupElement caption height is 20px. If we have 5 groups, the calculation is 5x20 = 100px. There are 100px more left for the content panel. This means that the content panel height depends on the panelbar height when it is in ListBar style mode.

I hope this helps. Please write me back if you have more questions.

Sincerely yours,
Boyko Markov
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.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Sean
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Jay Jose
Top achievements
Rank 1
Boyko Markov
Telerik team
Share this question
or