You need to sign in to do that
Don't have an account?
Lewis Reed
Is it possible to load data into a tab panel only for the active tab?
Is it possible to load data into a tab panel only for the active tab?
I have multiple tabs on one of my pages, embedded with the <apex:tabpanel>
As these are quite large and loading times are slow, is it possible to only load the data from the methods on the current tab panel as oppose to all of them?
Thanks in advance
I have multiple tabs on one of my pages, embedded with the <apex:tabpanel>
As these are quite large and loading times are slow, is it possible to only load the data from the methods on the current tab panel as oppose to all of them?
Thanks in advance
I am guessing you built this tab page using js and jquery .
In that case, on page load the entire data will be captured from server onto the client and thereby affecting your view state also.
Instead i would go with an approach where you could break your tabs into respective pages, and on click of each tab navigate the user to the required page.
This way , the view state is controlled and also large data query will also be prevented.
Thanks,
Rohit
You can instead load data only for active tab when the page loads first and then for every change on tab, use the onclick event on apex:tab and get the data. So at one point of time you only have data for one tab.