Expander Open in Hidden mode when Tab Change

6 posts, 0 answers
  1. Piyush Patel
    Piyush Patel avatar
    41 posts
    Member since:
    Oct 2012

    Posted 28 Dec 2009 Link to this post

    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!
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 28 Dec 2009 Link to this post

    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.
  3. DevCraft banner
  4. Piyush Patel
    Piyush Patel avatar
    41 posts
    Member since:
    Oct 2012

    Posted 28 Dec 2009 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 28 Dec 2009 Link to this post

    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.
  6. Piyush Patel
    Piyush Patel avatar
    41 posts
    Member since:
    Oct 2012

    Posted 28 Dec 2009 Link to this post

    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)
  7. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 04 Jan 2010 Link to this post

    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.
Back to Top
DevCraft banner