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

How to stop panel from expanding in clientside script

1 Answer 39 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Laurie
Top achievements
Rank 2
Laurie asked on 22 Apr 2009, 09:36 PM
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?

Thanks.

Laurie

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 24 Apr 2009, 08:09 AM
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".

CS:
 
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

Thanks,
Shinu.
Tags
PanelBar
Asked by
Laurie
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Share this question
or