Collapsible panel extender. How to maintain the Extanded state on updatepanel updates

Last post 07-04-2008 10:58 PM by Audley9. 1 replies.

Sort Posts:

  • Collapsible panel extender. How to maintain the Extanded state on updatepanel updates

    07-04-2008, 8:10 PM
    • Loading...
    • bcweed966
    • Joined on 11-27-2006, 2:40 AM
    • Posts 354

    I have an app that uses a collapsiblePanel Extender and it is set to Collaped becuse thats the ay it needs to be.

    But when the user has it epanded then in the panel is a linkbutton that when is clicked updates some database value and then updates the values displayed inside the collapsible panel. I do all my updates using ajax update panel. The problem is that when I do the update then the Collapsible panel returns to the collapsed state and this is not cool!

    How can I solve his or go around. I am new to this ajax and javascript thing.

     

    Thank you

  • Re: Collapsible panel extender. How to maintain the Extanded state on updatepanel updates

    07-04-2008, 10:58 PM
    Answer
    • Loading...
    • Audley9
    • Joined on 05-21-2007, 8:35 PM
    • Posts 104

    You can aviod Javascript altogether and just use Asp.Net!

    The Link button - lets call it Linkbutton1, will sit inside a Panel - Panel1.  The expand and collapse feature will be controled by another Asp.Net control the CollapsoblePanel Extender - lets call that one Extender1, you can use code in the link button click to touch the Extender control

    Extender1.Collapsed = True

    This should keep it open through the round trip.

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter