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

Expander Open in Hidden mode when Tab Change

5 Answers 114 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Piyush Patel
Top achievements
Rank 1
Piyush Patel asked on 28 Dec 2009, 10:45 AM
Hello Friends !
I m working on silverlight 3.0 beta version.I m using Tabcontrols with Two tabs .In One tab I m add telerik Expander in My project. In Expander content i m add some  Textboxes like direct phone,business phone etc.....My problem is When I m Change my tabs the expander controls Open In Hidden Mode. mean It should stay in close mode when I change my Tabs but It should open with HIDDEN MODE.

I attached  My screenshots Psl Help me in my problem.

Thank you!

5 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 28 Dec 2009, 11:27 AM
Hi Piyush Patel,

This is expected bahvior, the controls in the tab content loose their state when the tabs are changed, because the content is re-created every time from the framework. You should handle the tab selection change and to restore the previous state of the expander control.

Regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Piyush Patel
Top achievements
Rank 1
answered on 28 Dec 2009, 11:37 AM
Thanks for reply me sir but Expander have only Two state Open(Expand) and Close when we Click on Expander control.There is no state That All controls(Textbox,check box, Radio button ) in EXPANDER going Hidden(Readonly) mode.and i m not set any Property that All controls are become hidden.so If possible psl Reply give me my answers
0
Valentin.Stoychev
Telerik team
answered on 28 Dec 2009, 11:40 AM
Hi Piyush Patel,

Yes - the expander control has expanded and not expanded state. You need to handle the Expanded event and to store in a private variable if the expander is open or closed. When the tab selection changes you need to update the expander state. If it was open set the IsExpanded to true, otherwise set it to false.

Hope this make it clear now.

Best wishes,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Piyush Patel
Top achievements
Rank 1
answered on 28 Dec 2009, 12:14 PM
hello sir ! psl see my update Screenshots i define what is my problem by  visually.

Expander is Close mode but...It's All contents Shows(it's should not shows becoz expander is close)
0
Ivan
Telerik team
answered on 04 Jan 2010, 09:27 AM
Hi Piyush,

Thank you for your interest in the RadExpander control.

The observed behavior is the correct one according to the current implementation of the RadExpander control. Please note the Arrow sign points the direction where the expander's content will move if the animation is enabled. For example when the Expand Direction is Down (this is the default value) the arrow will point:
  • Down when expander is collapsed (IsExpanded = False);
  • Up when expander is expanded (IsExpanded = True);

Please preview the attached example where a form with four expanders is implemented as a visual aid.

We hope this information will help you.

Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Expander
Asked by
Piyush Patel
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Piyush Patel
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or