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?
Solved
Tab data load on demand
Best answer by Dmitrii Naumov
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:
- Make it not the default tab. That way a user will need to switch to the tab for it to load.
- 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.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.