I'm displaying images in an ExtJS grid by using column renderers that return HTML tags. The issue is that the images "flicker" (i.e., vanish and re-appear) each time the grid is updated. Is there a way to prevent this? Here's a simplified example of what I'm doing:
Ext.create('Ext.grid.Panel', {
title: 'My Grid',
store: myStore
columns: [
{
header: 'Image',
dataIndex: 'imgUrl',
renderer: function(imgUrl, meta, record) {
// Add a mouse-over / tooltip that shows the name
meta.tdAttr = 'data-qtip="' + Ext.String.htmlEncode(record.getName()) + '"';
return '<img src="' + imgUrl + '">';
}
}
]
});