-
9 Dec 2010 9:08 AM #1
Image rendering in GridPanel
Image rendering in GridPanel
Hi,
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??
Thanks!
-
10 Dec 2010 7:00 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
images should load when the img tag deems necessary.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
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
It's as simple as that!!Code:cm.setRenderer(cm.findColumnIndex("Photo"), renderIcon)
Similar Threads
-
Image rendering help
By Pecc in forum Ext GWT: DiscussionReplies: 3Last Post: 31 Aug 2010, 12:37 PM -
Image rendering in IE6, possible bug?
By cyChop in forum Ext GWT: DiscussionReplies: 4Last Post: 7 Jul 2010, 7:33 AM -
Image in Gridpanel
By simpleContent in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 10 Dec 2008, 6:00 AM -
event when a rendering of an image to div is done
By mxu in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 6 May 2008, 6:55 AM


Reply With Quote