sencha touch 2 - Nestedlist not showing store data when inside panel -
i'm having problem loading nestedlist data when list shown inside of panel. here code:
var titlebar = ext.create("ext.titlebar", { id: 'mainnavigationbar', xtype : 'titlebar', layout: 'hbox', docked: 'top', title : 'csenchatitlebar', items:[ { xtype:"button", text:"menu", align:"left", listeners:{ tap: function(){ nestedlistxx.showby(this); } } }, ] }); var nestedlist = ext.create('ext.nestedlist', { displayfield: 'text', title:"csenchamenu", store: "onavstore", id: 'mainnestedlist', xtype : 'nestedlist', width:250, usetitleasbacktext: false, }); var nestedlistxx = ext.create("ext.panel", { width:260, items:nestedlist });
the problem following: if change nestedlistxx.showby(this);
nestedlist.showby(this);
works charm, there no sleek black borders around nested list. if change show nestedlist nice borders without data.
i know sure forgot set key configuration, question is: ones
you need set layout ext.panel
.
try :
var nestedlistxx = ext.create("ext.panel", { width:260, layout:'fit', items:nestedlist });
hope helps
Comments
Post a Comment