var tbody = this.el.select('tbody', true).first();
+ var renders = [];
+
if(this.store.getCount() > 0){
this.store.data.each(function(d){
var row = {
for(var i = 0, len = cm.getColumnCount(); i < len; i++){
var renderer = cm.getRenderer(i);
var value = '';
+ var id = Roo.id();
if(typeof(renderer) !== 'undefined'){
value = renderer(d.data[cm.getDataIndex(i)], false, d);
}
if(typeof(value) === 'object'){
- row.cn.push({
- tag: 'td',
- cn: value
- })
- }else{
- row.cn.push({
- tag: 'td',
- html: value
+ renders.push({
+ id : id,
+ cfg : value
})
}
+
+ row.cn.push({
+ tag: 'td',
+ id: id,
+ html: (typeof(value) === 'object') ? '' : value
+ })
+
}
tbody.createChild(row);
});
}
+ if(renders.length){
+ Roo.each(renders, function(r){
+ r.cfg.render(Roo.get(r.id));
+ })
+ }
//
// if(this.loadMask){
// this.maskEl.hide();
this.pageTb = new Roo.Toolbar(this.footer);
}
+ */
if(this.pageSize){
this.footer = this.list.createChild({cls:cls+'-ft'});
this.pageTb = new Roo.PagingToolbar(this.footer, this.store,
if (this.footer) {
this.assetHeight += this.footer.getHeight();
}
- */
+
if(!this.tpl){
this.tpl = '<li><a href="#">{' + this.displayField + '}</a></li>';
this.on('monthchange', this.onMonthChange, this);
- this.update(new Date().clearTime());
+// this.update(new Date().clearTime());
},
resize : function() {