EasyUI Forum
September 13, 2025, 12:31:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Load data into two forms in two different tabs  (Read 5494 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« on: April 13, 2016, 06:54:21 AM »

Hi all,

I need help with the following page:
http://195.144.40.170/jeasyui/LLL/index.html

If (after selecting the link) you select the "Load" button, data is loaded only into the first tab (Form1) but not into the second tab (Form2).
If (before selecting the "Load" button) you select the second tab (Form2), all works as expected.

How can I solve this ?

Thanks for any help
Miche
« Last Edit: April 13, 2016, 06:56:41 AM by rezzonico » Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: April 13, 2016, 08:43:11 AM »

You must call 'refresh' method to load the content of the second tab panel before calling the 'loadFunc' function.
Code:
var p = $('#tt').tabs('tabs')[1];
p.panel('options').onLoad = function(){
    loadFunc();
};
p.panel('refresh');
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!