EasyUI Forum
May 16, 2024, 04:24:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Accordion header change when load a panel by href  (Read 7330 times)
zurfero
Newbie
*
Posts: 15


View Profile
« on: December 10, 2014, 05:11:53 AM »

Hello.
I have the next question.

I have made the next example, in which you can see a normal accordion. The tab Ajax , if you open and click reload tool..., (Reload not work but it's not the objective of my post), you will can see the icon for collapse and expand tab of accordion have changed, and now if you click on header of tab , not expand or collapse tab..., you must click on the new icon for it.

http://jsfiddle.net/zurfero/753Lrqv1/12/

Is there any way for avoid it?? And when load ajax panel in accordion , not lost the funcionallity and click on header collapse and expand the tab???

Thanks for your help.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 10, 2014, 06:52:25 PM »

To reload a panel's content, please prevent from recreating it again, use the 'refresh' method instead.
Code:
var panel = $('#acordeon_prueba').accordion('getPanel',2);
panel.panel('refresh', '_content.html');
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!