9 Dec 2010 9:08 AM #1
Image rendering in GridPanel
I'm creating a staff directory similar than this: http://stackoverflow.com/questions/6...id-using-extjs
So I'm using a GridPanel where I render a different image in each row.
When I load my my web page, 2 things happend:1. I load the store (with autoLoad:true)After this, I use filters to narrow selection in the gridPanel according to user input.
2. I set an arbitrary filter that return nothing so that we can't see everyone in the directory (GridPanel appears empty at startup)
The "problem" is that all the images are load at startup. I would rather prefer the images to be loaded only when they need to be displayed in the GridPanel.
Is there any way to do that??
10 Dec 2010 7:00 AM #2
- Join Date
- Mar 2007
- DC Area =)
- Vote Rating
10 Dec 2010 9:13 PM #3
15 Mar 2011 11:46 AM #4
Ok, so I answered myself a while ago..
For those who are interested in the answer, here is what I did:
- I removed the 'renderer' function from my columnModel config
- in my store load event I call the columnModel's setRenderer function like this
By Pecc in forum Ext GWT: DiscussionReplies: 3Last Post: 31 Aug 2010, 12:37 PM
By cyChop in forum Ext GWT: DiscussionReplies: 4Last Post: 7 Jul 2010, 7:33 AM
By simpleContent in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 10 Dec 2008, 6:00 AM
By mxu in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 6 May 2008, 6:55 AM