0

このリストがパネル内に表示されている場合、ネストされたリスト データの読み込みに問題があります。これが私のコードです:

    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
    });

問題は次のとおりです。次のように変更 nestedListxx.showBy(this);するnestedList.showBy(this); と、ネストされたリストの周りに滑らかな黒い境界線がないだけで、魅力のように機能します。しかし、元に戻すと、ネストされたリストがきれいな境界線で表示されますが、データは表示されません。

いくつかの重要な構成を設定するのを忘れていたことは確かです。問題は次のとおりです。

4

1 に答える 1

1

おそらく、レイアウトを に設定する必要がありますExt.Panel

試す :

var nestedListxx = Ext.create("Ext.Panel", {
    width:260,
    layout:'fit',
    items:nestedList
});

お役に立てれば

于 2012-06-05T11:07:58.203 に答える