This is a migrated thread and some comments may be shown as answers.
Expanding/Collapsing programmatically, don´t trigger client event.
1 Answer 27 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edgar Paulk
Top achievements
Rank 1
Edgar Paulk asked on 24 Apr 2011, 04:56 AM

Hi guys,

I´m trying to implement an expand/collapse ALL. I´m using something similar to this:

 

var panel = $("#PanelBar").data("tPanelBar");
var items = $("li", panel.element); //jQuery collection of <li> elements
panel.expand(items);

This code works, and opens and collapses all the panels.

The problem is that for some reason, the defined client event, don´t trigger. Only gets triggered when I click manually the panel.

Any Idea what's happening?

thanks!

Edgar

1 Answer, 1 is accepted

Sort by
0
License Developer
Top achievements
Rank 1
answered on 10 Oct 2012, 04:08 PM

You can use below code to expand and trigger client events.

var panel = $("#PanelBar").data("tPanelBar");

var item = $("li", panel.element)[0]; //jQuery collection of <li> elements
$(item).find('.t-link').click();
Tags
PanelBar
Asked by
Edgar Paulk
Top achievements
Rank 1
Answers by
License Developer
Top achievements
Rank 1
Share this question
or