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

2 posts, 0 answers
  1. Chris
    Chris avatar
    76 posts
    Member since:
    Oct 2015

    Posted 01 Mar Link to this post


    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





  2. Neli
    Neli avatar
    122 posts

    Posted 02 Mar Link to this post

    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. 

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