Skip to main content
Solved

Tab data load on demand


I’ve added two tabs to a tab strip.  These two tabs do not need to load unless the user actually clicks on the tab.  Is there a way to prevent the loading of a tab until it is activated by the user?

Best answer by Dmitrii Naumov

@doncarter  do you mean the tab is open when a user opens the screen? In that case, it’ll load. 

I thought you are talking about the tabs that are not open. Those do load only when user switches to them.

 

I don’t think there is a ready solution for what you are asking. I see two ways:

  1. Make it not the default tab. That way a user will need to switch to the tab for it to load.
  2. Override the View select delegate and add a button ‘Load’ on the screen. Gives you more control over what’s happening, but requires more code to implement. 
View original
Did this topic help you find an answer to your question?

5 replies

  • Author
  • Freshman I
  • 3 replies
  • March 11, 2025

This is specifically for Build 24.204, but is a valid question for performance in any build.


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 632 replies
  • March 11, 2025

@doncarter in the aspx there is a property for that:

LoadOnDemand = true

 

As far as I remember it’s actually set to true by default as well, so it should work like that by default.


  • Author
  • Freshman I
  • 3 replies
  • March 11, 2025

@Dmitrii Naumov, thanks for the quick response.  The tabs load when the page loads.  The user doesn’t have to click on the tab itself for the data to get loaded.  I’m wanting that call to not happen until the user actually clicks on the tab.


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 632 replies
  • Answer
  • March 11, 2025

@doncarter  do you mean the tab is open when a user opens the screen? In that case, it’ll load. 

I thought you are talking about the tabs that are not open. Those do load only when user switches to them.

 

I don’t think there is a ready solution for what you are asking. I see two ways:

  1. Make it not the default tab. That way a user will need to switch to the tab for it to load.
  2. Override the View select delegate and add a button ‘Load’ on the screen. Gives you more control over what’s happening, but requires more code to implement. 

  • Author
  • Freshman I
  • 3 replies
  • March 11, 2025

@Dmitrii Naumov, neither tab is the default tab.  The View select delegate fires on page load.  You’ve given me an idea.  Gracias.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings