few expanders in a window

2 posts, 0 answers
  1. Zbigniew Kozłowski
    Zbigniew Kozłowski avatar
    60 posts
    Member since:
    Apr 2010

    Posted 19 Apr 2010 Link to this post

    i don't know how to make for example 3 expanders one after another, so they will go up when one is collapsed, like this:

    v EXPANDER_1 (IsExpanded=false)
    v EXPANDER_2 (IsExpanded=false)
    v EXPANDER_3 (IsExpanded=false)


    ^ EXPANDER_1 (IsExpanded=true)
    some controls
    some controls
    some controls
    v EXPANDER_2 (IsExpanded=false)
    ^ EXPANDER_3 (IsExpanded=true)
    some controls
    some controls
    some controls

    when i collapse one now, i just have free space between them.

    Zbigniew Kozłowski
  2. Ivan
    Ivan avatar
    519 posts

    Posted 22 Apr 2010 Link to this post

    Hello Zbigniew,

    Thank you for contacting us.

    You can achieve your goals lay-outing expanders in one of following two ways:
    • Using a StackPanel:
      For example you can stack your expanders in a stack panel (for example vertical oriented) and each expander will move reposition expanders below it.
    • Using a Grid:
      Each expander should be in a placed in a separated grid-row alone. The height of the row should be marked as Auto.

    Please preview the attached here example and let us know if you have more questions.

    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