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

RadExpander.IsExpanded

5 Answers 320 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 24 Jun 2009, 03:37 PM
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>

 



5 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 25 Jun 2009, 08:20 AM
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.
0
AJ
Top achievements
Rank 2
answered on 09 Nov 2010, 11:02 PM
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
0
Viktor Tsvetkov
Telerik team
answered on 10 Nov 2010, 10:56 AM
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
0
Alex
Top achievements
Rank 1
answered on 12 Dec 2016, 07:43 PM

Hi,

We are using RadExpander in our application and IsExpanded property is set to true in XAML. We are trying to capture AcutalHeight of the RadExpander on the load of RadGridView that's part of the RadExpander.

The AcutalHeight is coming as 0 which is causing error.

Can you please tell me why?

Thanks and regards,

Alex

0
Milena
Telerik team
answered on 15 Dec 2016, 08:16 AM
Hello Alex,

I tried to reproduce the described  behavior locally but to no avail.

Could you please elaborate a bit more on your scenario and give us more details about the structure of your application (the part where the RadExpander is) - where it is hosted, you said "on the load of RadGridView that's part of the RadExpander." - does this mean that there is a RadGridView inside the expander content? Because I tried this approach and on my side it works as expected. It would be great if you can send us an isolated project (or a code-snippet) so that we can test it locally and further investigate the reason behind this behavior.

Thank you in advance for your cooperation.

Regards,
Milena
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Expander
Asked by
Jim
Top achievements
Rank 1
Answers by
Ivan
Telerik team
AJ
Top achievements
Rank 2
Viktor Tsvetkov
Telerik team
Alex
Top achievements
Rank 1
Milena
Telerik team
Share this question
or