mitchellsimoens / Ext.ux.touch.grid

Grid components for Sencha Touch 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show/hide demo only toggles header

RemyBlanco opened this issue · comments

using sencha touch 2.1, in the show/hide demo only the header shows/hides/toggles not the item column

sorry. looks like an sdk bug. apologies for opening before digging more.
http://www.sencha.com/forum/showthread.php?248221-Change-Template-in-List-(v2.1)/page2

hacked in the override as

updateItemTpl: function(newTpl, oldTpl) {
   var header = this.getHeader(),
        html = this._buildTpl(this.getColumns(), true);

   header.setHtml(html.tpl);

var listItems = this.listItems,
        ln = listItems.length || 0,
        i, listItem;

for (i = 0; i < ln; i++) {
    listItem = listItems[i];
    listItem.setTpl(newTpl);
}
this.doRefresh();
},