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

nested expander

1 Answer 51 Views
Expander
This is a migrated thread and some comments may be shown as answers.
naga kiran
Top achievements
Rank 1
naga kiran asked on 18 Aug 2009, 04:55 AM
I need code for how to add an expander  to an expander dynamically from xaml.cs file 

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 18 Aug 2009, 05:38 AM
Hello naga kiran,

RadExpander is exposing a Content property which you can use to add the new "nested" expander.

 

StackPanel panel = new StackPanel();
RadExpander1.Content = panel;
RadExpander nestedExpander = new RadExpander();
panel.Children.Add(nestedExpander);

 


All the best,
Valentin.Stoychev
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.
Tags
Expander
Asked by
naga kiran
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or