automatically resize GridView when expand Expander

2 posts, 0 answers
  1. Berthold
    Berthold avatar
    38 posts
    Member since:
    Jul 2010

    Posted 03 Oct 2010 Link to this post

    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?

    attached I tried to explain my problem with a scribble
  2. Zarko
    Zarko avatar
    755 posts

    Posted 06 Oct 2010 Link to this post

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