Panelbar of expandMode single allows for programmatic multiple expansion?

2 posts, 1 answers
  1. 100%
    100% avatar
    75 posts
    Member since:
    Apr 2013

    Posted 06 Mar 2014 Link to this post

    I use my panel bar like this:

    var div = $('#test-accordion');
     
    div.kendoPanelBar(
    {
     expandMode: "single"
    });


    When I open the first item programmatically like this:

    var use_animation = false;
     
    var li = div.find('li.k-item:first');
     
    div.data('kendoPanelBar').expand(li, use_animation).select(li);

    I find that the panel bar has multiple items expanded, so panelbar does not respect the expandMode.

    A bug?

    When I try to close all items like this:

    div.data('kendoPanelBar').collapse("*", use_animation);

    nothing happens.


  2. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 10 Mar 2014 Link to this post

    Hello,

    I tried to reproduce this behavior, but everything worked as expected on our side (see screencast). Could you please share a runnable sample where the issue is reproduced?

    Regards,
    Alexander Popov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top