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

PanelBar.ExpandMode(PanelBarExpandMode.Single) - the expanded item unable to collapse

1 Answer 252 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Chris asked on 02 Mar 2018, 03:51 AM

HI

There have a problem about PanelBar.ExpandMode(PanelBarExpandMode.Single) : 

When user expand one item then other expanded item will collapse automatically (THIS IS OK),
but when user click the EXPANDED ITEM, that item will not collapse.

How can I collapse the EXPANDED ITEM while PanelBar.ExpandMode(PanelBarExpandMode.Single) ?

Best regards

Chris

 

 

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 02 Mar 2018, 04:08 PM
Hi Chris,

You can collapse the items in the PanelBar by using the collapse() method.
In case you need all items in the PanelBar to be collapsed, you can use the approach described in the following link from StackOverflow.

I have prepared a Dojo example, where if PanelBar header item is clicked it will be collapsed. At the same time the other items will not be expanded. The approach in ASP.NET projects will be the same. 

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PanelBar
Asked by
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or