Unplanned
Last Updated: 19 Oct 2026 08:16 by ADMIN
ADMIN
Jack
Created on: 21 Oct 2011 05:15
Category:
Type: Bug Report
1
FIX. RadPanel - does not behave the same way as MS WinForms Panel when sizing
When RadPanel is set to AutoSize, it should update its size automatically when changing the visibility of some control inside it.

Workaround:
 public class CustomRadPanel : RadPanel
    {
        public override string ThemeClassName
        {
            get
            {
                return typeof(RadPanel).FullName;
            }
            set
            {
                base.ThemeClassName = value;
            }
        }

        protected override void OnLayout(LayoutEventArgs e)
        {
            base.OnLayout(e);
            int maxHeight = 0;
            foreach (Control control in this.Controls)
            {
                if (control.Visible)
                {
                    maxHeight = Math.Max(control.Height, maxHeight);
                }
            }
            this.AutoSize = false;
            this.Height = maxHeight;
        }
    }
2 comments
ADMIN
Nadya | Tech Support Engineer
Posted on: 19 Oct 2026 08:16

Hello,

Following a recent review, we've decided to reopen this bug report as it is still valid and needs a fix. While it has received limited community interest over the years, we believe it addresses a valid scenario and is worth keeping active. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Modernizing a WinForms application? Use the AI-powered WinForms Converter to simplify migration to Telerik UI for WinForms.
ADMIN
Dinko | Tech Support Engineer
Posted on: 28 Sep 2026 13:06

Hello,

This behavior was first reported more than 10 years ago, and we haven’t seen significant demand or follow-up from the community since then. As a result, we currently plan to prioritize improvements with broader impact and greater demand.

I marked this thread as "Declined". If this limitation is still affecting your scenario, please share additional context or use cases. 

Thank you for taking the time to share your feedback!

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Modernizing a WinForms application? Use the AI-powered WinForms Converter to simplify migration to Telerik UI for WinForms.