RadChart and RadExpander Sharing space

3 posts, 1 answers
  1. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 29 Jan 2010 Link to this post

    I have been trying to have a StackPanel which has two sub-elements:

    1. A RadExpander
    2. A RadChart

    The idea is that when when the expander is closed, The Chart gets the free space, and when it opens up, the Chart is shoved down.

    That is why I use the StackPanel

    The issue is that I don't want the StackPanel to have a fixed Height (or width). But when I take off the Height, then the Chart grows to 600 in Height (even though it is set to Auto).

    Grids solve the "fill available space issue), But no combination of nesting, *-Layout, AutoLayout or other techniques have allowed me to have the "push this control down" effect. With the GRID I always get the expander overlaying the RadChart (and hiding the title).

  2. Answer
    Ves avatar
    2870 posts

    Posted 02 Feb 2010 Link to this post

    Hi Dr.YSG,

    The following setup works fine for me:

    <Grid x:Name="LayoutRoot" Background="White">
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <Rectangle Fill="Pink" Height="300" />
            <telerikChart:RadChart x:Name="RadChart1" Grid.Row="1" />

    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. DevCraft R3 2016 release webinar banner
  4. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 02 Feb 2010 Link to this post

    Excellent. I have been trying all sorts of combinations of Auto, *, and nesting of Grids. I thought I had tried that one, But obviously not.

    It is working for me for both Charts and RadGrids.. Thank you for helping me with this, it was a couple of weeks of naggling issues.
Back to Top