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

Panelbar of expandMode single allows for programmatic multiple expansion?

1 Answer 75 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
100%
Top achievements
Rank 1
100% asked on 06 Mar 2014, 03:08 PM
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.


1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 10 Mar 2014, 09:20 AM
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!
Tags
PanelBar
Asked by
100%
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or