PDA

View Full Version : Can Grouptabpanel load items by clicking each session?



chamlie
9 Jun 2010, 2:15 AM
Hi all,

I have developed a menu by using grouptabpanel

Session A
-> A1
-> A2
-> A3
Session B
-> B1
-> B2
...etc

Each session will retrieve the database once and response the data to the corresponding session.

However, when using the grouptabpanel, all the sessions are sending requests to database :( and the loading time will become extremely long.

Is there any way to use onClick event on the grouptabpanel session to retrieve the data instead loading all of the data in the sessions?

Sory for poor English and thanks for any help. =D>

CrazyEnigma
9 Jun 2010, 11:43 PM
The answer is that it is possible, but only you can determine if you have designed it properly. When you say that the data loading will be extremely long, you may want to reconsider your strategy. You will want to employ paging techniques that are available in the EXT JS framework. onClick would actually be the click listener and you may want to look into the load() method on the Ext.data.Store.