EasyUI Forum
April 26, 2024, 06:40:46 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: on-demand rendering of tab elements / controls  (Read 4169 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: June 30, 2016, 06:07:45 PM »

I have several pages that contain as many as 10 tabs, and under each tab there could be as many as 20 different controls, with a potential of up to 200 controls in one page, this of course requires a huge amount of rendering and takes a long time to complete.

What I am looking for is the ability to render a tab's elements and ajax events, only when the tab is selected by the user.

This would mean that when the page initially loads, only the first tab is rendered, and the others are only rendered when the tab is selected.

Any suggestions on how this can be 'easily' achieved ?

If would be a great feature to add to the tab control ?
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 30, 2016, 07:03:56 PM »

Set the 'href' property for the tab panel to delay loading its content.
Code:
<div class="easyui-tabs" style="width:700px;height:250px">
<div title="About" style="padding:10px">
<p>The first tab.</p>
</div>
<div title="My Documents" style="padding:10px" href="_content1.html"></div>
<div title="Help" data-options="iconCls:'icon-help',closable:true,href:'_content2.html'" style="padding:10px"></div>
</div>
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!