Setting ControlPanel height

4 posts, 0 answers
  1. Sean
    Sean avatar
    3 posts
    Member since:
    Jun 2009

    Posted 10 Aug 2009 Link to this post

    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.AutoScroll = true


  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 13 Aug 2009 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. Jay Jose
    Jay Jose avatar
    13 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2009 Link to this post

    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.

  5. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 11 Sep 2009 Link to this post

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