Results 1 to 2 of 2

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

    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
    2
      0  

    Default [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 User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •