Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > RadExpander.IsExpanded

Not answered RadExpander.IsExpanded

Feed from this thread
  • Jim avatar

    Posted on Jun 24, 2009 (permalink)

    I am placing a RadExpander on a WPF window and set the IsExapnded property to False so when the window is loaded it (the expander) should display closed initially.

    I'm using a MVVM pattern so I initially thought that something was wrong with the binding, but after explicitly setting the IsExpanded="False" on the RadExpander control in the xaml I recieved the same result with the window opening with the expander open instead of closed.  I even went as far as coding in the code behind of the window loaded event handler to set the IsExpanded = False.  This didn't work either.

    The odd thing is the toggle thinks the expander is closed, but the content area is open.  so you have to toggle open and then closed and the functionality of the control starts to work.

    Here is the code:

    <

     

    telerik:RadExpander x:Name="ValidationExpander" BorderBrush="#888888" BorderThickness="1" Background="#EEEEEE"          
                                       IsExpanded
    ="False" MinWidth="500" Canvas.Bottom="0" ExpandDirection="Up" Canvas.Left="0">

     

     

     

         <telerik:RadExpander.Header>

     

     

     

              <TextBlock x:Name="expanderCaption" Foreground="#000000" Visibility="Visible" />

     

     

     

         </telerik:RadExpander.Header>

     

     

     

         <telerik:RadExpander.Content>

     

     

     

                  <local:MessageBoxControl DataContext="{Binding MessageBoxViewModel, UpdateSourceTrigger=PropertyChanged}"
                                                             VerticalAlignment
    ="Top"/>

     

     

     

         </telerik:RadExpander.Content>

     

     

     

     

    </telerik:RadExpander>

     



    Reply

  • Ivan Ivan admin's avatar

    Posted on Jun 25, 2009 (permalink)

    Hi Jim,

    Thank you for your interest in the RadExpander control.

    We confirm this is an issue with the WPF version of the RadExpander in our last release (2009-Q1)  and in order to workaround it you should toggle the IsExpanded to true and then to false.

    This issue is already addressed and the fix will be available in the upcoming Q2 release.

    Because of reporting the issue and sharing the workaround we updated your Telerik points.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Nov 9, 2010 (permalink)

    Has this been fixed yet. I am having the same issue on a project I am working on
     and I have the latest release.

    Thanks,
    AJ

    Reply

  • Viktor Tsvetkov Viktor Tsvetkov admin's avatar

    Posted on Nov 10, 2010 (permalink)

    Hi Arie,

    I cannot get such behavior. Could you please examine the attached sample project and if you have further questions do not hesitate to ask?

    All the best,
    Viktor Tsvetkov
    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
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > RadExpander.IsExpanded
Related resources for "RadExpander.IsExpanded"

WPF Expander Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]