ExpandMode Singele but allow close

2 posts, 1 answers
  1. Marcin
    Marcin avatar
    173 posts
    Member since:
    Jan 2011

    Posted 29 Sep 2016 Link to this post


    I would ask about possibility to close last panel when expandmode is single. Multiple expand mode allows close all panels, single not.

    How to close all panels in single mode.


  2. Answer
    Eduardo Serra
    Eduardo Serra avatar
    95 posts

    Posted 29 Sep 2016 Link to this post

    Hello Marcin,

    We can achieve this behavior by subscribing to the select event and, once it's triggered, checking if the selected panel is the active one and then using the collapse method.

    I have prepared a sample for you in the Kendo UI Dojo that follows this approach; you can take a look at it here.

    I hope this helps!

    Eduardo Serra
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top