Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User jsveron23's Avatar
    Join Date
    Feb 2011
    Location
    Seoul, Korea
    Posts
    78
    Vote Rating
    1
    jsveron23 is on a distinguished road

      0  

    Default [P4] setActiveItem doesn't work with Nested-list

    [P4] setActiveItem doesn't work with Nested-list


    Code:
    Ext.define('***.view.Category', {
    	extend: 'Ext.Container',	
    	alias : 'widget.xtype_category',
    	config: {
    		layout: 'fit',
    		items : [
    			{
    				xtype         : 'nestedlist',
    				id            : 'CategoryNested',
    				toolbar       : { ui: 'dark' },
    				title         : '분류',
    				displayField  : 'text',
    				store         : 'CategoryNested',
    				detailCard    : { xtype: 'xtype_detailCard' },
    				getItemTextTpl: function() {
    					return '{' + this.getDisplayField() + '}({cnt})';
                    }
    			}
    		]		
    	}
    });
    thats categoryTap(tabPanel item), i added some panel.

    Code:
    var	newCard    = categoryTap.add(detailView)
    Code:
    .....setActiveItem(newCard);
    i checked newCard in html. but theres added 'display: none' css attribute. Couldn't change active-item. Sorry english.

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    A NestedList cannot be used in this way and it is not intended that you add more cards to it. This component is fully managed by the supplied store and handles the switching of two lists and a detailCard (or detailContainer). The store is in charge and typically driven by actions taken on one of it's child lists which pass selected records in the store. If you wanted to trigger this another way, I guess you could use goToNode or goToLeaf to do that.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar