Sam
Sam

Reputation: 3

Extjs - Call grid url only on tab click

We have an app where grid is loaded dynamically with multiple tabs having one or more grid.The problem is when the application loads itself it is calling all the urls instead i want to call them on tab click to save performance. Grids items are mentioned in Initcomponent method and there is common code for loading different grids. Can someone help? Thanks.

Upvotes: 0

Views: 68

Answers (1)

Kevin Collins
Kevin Collins

Reputation: 1461

Set autoLoad to false on the underlying stores. Then in a handler for the tab's click event, like you said, call the store's load method.

Upvotes: 1

Related Questions