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

automatically resize GridView when expand Expander

1 Answer 65 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Berthold
Top achievements
Rank 1
Berthold asked on 03 Oct 2010, 10:14 PM
Hi,
I'm not sure whether this question should asked here or in DockPanel-Thread.

I want to display a GridView (list of persons) and a Expander, containing a detailview to change selected persons attributes.
Initially the Expander is collapsed. Now, when the user expanded the detailview, the grid should be automatically resized - but not smaller than his MinHeight (but as high as possible without using scrollbars).
Around both (GridView and Expander) I added a Scrollviewer, to provide Scrollbars if the screen is to small to show both (GridView in MinHeight and Details)

At the moment I calculate the resulting size for GridView in Code behind.
But it looks a bit like a hack (and works not always well).
I'm wondering if there is a way to solve this problem through DockPanel or better usage of the Expander.

Any ideas?
Thanks
Berthold

attached I tried to explain my problem with a scribble

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 06 Oct 2010, 06:09 PM
Hi Berthold,

 Unfortunately there is no straightforward way to achieve such behavior, so you should try this workaround with the precalculation of the sizes.  

All the best,
Zarko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Expander
Asked by
Berthold
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or