RadCollapsiblePanel doesn't adapt to content height in auto-size

1 Answer 75 Views
CollapsiblePanel
Luca
Top achievements
Rank 1
Luca asked on 28 Oct 2024, 08:39 AM

Hello,
Thanks for your help in advance.

I'm experiencing an issue with the "RadCollapsiblePanel" not adjusting to the content height when "AutoSize = True".

Below is the page layout structure:

  • TableLayoutPanel
    • 1 columns (width: 100%)
    • 3 rows (height: auto):
      • RadCollapsiblePanel
        • MyUserControl
      • RadCollapsiblePanel
        • MyUserControl
      • RadCollapsiblePanel
        • MyUserControl

All components have "AutoSize = True" and "Dock = Top".
Collapsibles have "FitToContentHeight = FitToContentHeight" and "Root.StretchVertically = True" but they still don’t seem to fit the content as expected.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 29 Oct 2024, 11:56 AM

Hi Luca,

Thank you for the provided code snippet. However, to avoid any misunderstanding and to have a better look at the set-up, may I ask you to isolate the structure in a sample project? This way I can directly investigate the code and check the properties set to the elements. 

I am looking forward to your reply.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Luca
Top achievements
Rank 1
commented on 30 Oct 2024, 07:53 AM

Thanks for reply,

I have attached the requested project.
Hope this helps.
Dinko | Tech Support Engineer
Telerik team
commented on 30 Oct 2024, 11:21 AM

The provided project is greatly appreciated. Upon checking the code, the height of the RadCollapsiblePanel is too small. If you change the height of the panels to 150, you will see their content and be able to collapse it as expected. Keep in mind that the RadCollapsiblePanel is not auto size and you need to set its size.

I am also attaching the updated project.

Luca
Top achievements
Rank 1
commented on 31 Oct 2024, 08:02 AM | edited

Thanks for your answer,

Since content of the collapsible panel can be dynamic, I need an auto-size parent.
I'll look for a solution.
Andrea
Top achievements
Rank 1
commented on 11 Mar 2025, 01:46 PM

I know this is a bit of an old question, but have you found any solution yet?
Dinko | Tech Support Engineer
Telerik team
commented on 12 Mar 2025, 12:47 PM

I am afraid that I can't suggest a solution for the reported behavior. What I can only suggest with the current implementation is to set static size to the control.
Tags
CollapsiblePanel
Asked by
Luca
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or