Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Bailey on Jan 11, 2010 07:52
open dhtmlx forum
New Version

Hello,

I have downloaded the standard edition of the newer version of the suite 2.5. I am trying this out with a view to purchasing an enterprise upgrade version (we currently have pro version 1.6).

I have a few questions that I can't see any answers to.

Firstly I am loading a tabbar with iframe but I would like to only load the first tab once and then never refresh it. Other tabs should refresh when clicking on them. How do I prevent the loading of the first tab?

Secondly in the first tab I have an accordion in in one of the cells I have some html content and the other has a grid. Both these cells seem to have margin or padding around the content? How can I remove this?

Many thanks
Scott Bailey
Answer posted by Alex (support) on Jan 12, 2010 02:37

Hello,

>> I would like to only load the first tab once and then never refresh it. Other tabs should refresh when clicking on them. How do I prevent the loading of the first tab?

By default the pages do not refresh when the tab is selected again:

http://www.dhtmlx.com/docs/products/dhtmlxTabbar/samples/01_initialization/06_loading_by_iframes.html

To refresh all tabs except a certain tab you can use onSelect event: 

tabbar.attachEvent("onSelect",function(id){
  if(id != c) tabbar.forceLoad(id);
  return true
})

Where SOME_ID is the id of the tab that should be refreshed.

>>  first tab I have an accordion in in one of the cells I have some html content and the other has a grid. Both these cells seem to have margin or padding around the content? How can I remove this?

Please use attachGrid method to attach grid correctly:

http://www.dhtmlx.com/docs/products/dhtmlxAccordion/samples/04_components/04_grid.html