PDA

View Full Version : Grid in Card Layout Example by Saki



jsakalos
13 Oct 2009, 4:45 AM
Hi all,

I've uploaded new Grid in Card Layout Example (http://examples.extjs.eu/?ex=gridincard).

Enjoy!

Bulle Bas
14 Oct 2009, 5:32 AM
hey Saki, thanks!

jsakalos
14 Oct 2009, 6:26 AM
You're welcome. :)

Andrulik
15 Oct 2009, 2:24 AM
Hi,
I'm wondering is this code work properly in your example?

// load the store at the latest possible moment
this.on({
afterlayout:{scope:this, single:true, fn:function() {
this.store.load({params:{start:0, limit:30}});
}}
});I gues store must load data after browser render the grid, but it does rigth after page is loaded. Is this ext3 bug or feature? Or maybe I miss something.

PS: Big thanks for your examples. Plz go on.
PPS: Sorry for my non-native english.

jsakalos
15 Oct 2009, 3:14 AM
The code installs listener on afterlayout event. The event is triggered after the grid is rendered ("laid-out").

Andrulik
15 Oct 2009, 5:21 AM
I meen in this example firebug console show POST request after page is loaded. So afterlayout event is triggered even when we stay in 'firstcard'. But in gridintab example this event triggered only after we change active tab. That's because grid in cardlayout is rendered but "hidden"?

jsakalos
15 Oct 2009, 5:30 AM
Yes, you're right. In the case of card layout one more option is required. Take a look at it now.