This is the first thing I am talking about. But it is still not so user friendly that it renders progressbars after rendering the grid.
This is a custom renderer for the progress column:
renderer: function( value, metaData, record, rowIndex, colIndex, store ) { var id = Ext.id(); (function(){ var progress = new Ext.ProgressBar({ renderTo: id, value: progress_value }); }).defer(25); return '<div id="'+ id + '"></div>'; }
It displays the <div id="generated-id"/> , and then creates the generated progress bar in this div .
It would be better to use some kind of closure to create the progressbar only once and return it html through its own rendering, as in the example above, but, unfortunately, I still do not know how to do this in Ext.js 3. Regarding Ext. js 4, you can see this topic on the sencha forum
source share