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

Collapsible Panel Auto-Sizing not working with datagrid

1 Answer 228 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 02 Apr 2020, 05:04 PM

Hi,

I have two collapsible panels on top of each other.They both have a datagrid inside.

No matter what I do I cant get them to resize accordingly to row count/datagridsize.

What is the best way to go to achieve auto resizing with datagrids also resizing?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 07 Apr 2020, 12:39 PM

Hello Mark,

If I understand you correctly you would like to adjust the size of the RadCollapsiblePanel according to the size of RadGridView that is within it. In order to autosize the grid by the height, you should its AutoSize property and RootElement.StretchHorizontally to true. To adjust the collapsible panel's height you should calculate it by considering the height of the other elements that you have in the panel.

For reference I created a sample project based on the provided pictures and information. Could you please refer to it and see how it works.

I hope this helps. Should you have other questions do not hesitate to write back.

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
CollapsiblePanel
Asked by
Mark
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or