How to stop panel from expanding in clientside script

2 posts, 0 answers
  1. Laurie
    Laurie avatar
    141 posts
    Member since:
    Feb 2007

    Posted 22 Apr 2009 Link to this post

    I am creating and managing my radpanelbar dynamically using server-side code.  When I click on a section, I want to run some code through its subsections before opening the section.  I also want the previously opened section to appear to close at the same time as the new section opens.  This would work fine if I could figure out how to get the default client-side script that expands the new section to not expand that section.  Any ideas on this?


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Apr 2009 Link to this post

    Hi Laurie,

    I guess you want only one item can be expanded at a time. You can accomplish this by setting the ExpandMode property of RadPanelBar to "SingleExpandedItem".

    RadPanelBar1.ExpandMode = PanelBarExpandMode.SingleExpandedItem; 

    I hope the documentations on client side events and important methods of RadPanelBar will helpful to you.
    Client-Side Events
    RadPanelItem object

  3. DevCraft R3 2016 release webinar banner
Back to Top