1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    42
    Vote Rating
    0
    Answers
    1
    elnaz is on a distinguished road

      0  

    Default Unanswered: Can I use 3 different store in one class?

    Unanswered: Can I use 3 different store in one class?


    Hi ,

    I have a tab panel with 3 tab ,and inside of each tab there is a grid list,
    Can I use 3 different store in one class?
    and also all of the model have belongs To my Atho Model ,should I write model name for each of this grid? or should I put something like this in above class
    Code:
     model: 'AM.model.Atho'

    Code:
    
    
        extend: 'Ext.tab.Panel',
        alias:'widget.relationspanel',
    
    
        width: 350,
        border: true,
        maxHeight:280,
        bodyBorder: false,
        fieldDefaults: {
            labelWidth: 75,
            msgTarget: 'side'
        },
    
    
        items: [{
            title: 'Credential',
    	xtype: 'container',
           	items:[{
    	    align:'center',
    	    xtype:'gridpanel',
                store: 'StoreAutho',
    	   selType: 'checkboxmodel',
    	   multiSelect: true,
                columns: [
    	    	{header:'Method',dataIndex:'method', flex: 1,align:'center'},
    	    	{header:' Information',dataIndex:'Info', flex: 1,align:'center'},
    	    	
    	    ]
    	}]
    
    
        },{
            title: 'Public',
    	xtype: 'container',
           	items:[{
    	    align:'center',
    	    xtype:'gridpanel',
                store: 'Storetest',
    		selType: 'checkboxmodel',
    		multiSelect: true,
                   columns: [
    	    	{header:'test',dataIndex:'method', flex: 1,align:'center'},
    	    	{header:'test Information',dataIndex:'test', flex: 1,align:'center'},
    	    	
    	    ]
    	}]
        },{
            title: 'Profile',
    	xtype: 'container',
           	items:[{
    	    align:'center',
    	    xtype:'gridpanel',
                store: 'StoreAuthotest',
    	    selType: 'checkboxmodel',
    	    multiSelect: true,
                   columns: [
    	    	{header:'Method',dataIndex:'method', flex: 1,align:'center'},
    	    	{header:'Autho Information',dataIndex:'autho', flex: 1,align:'center'},
    	    	
    	    ]
    	}]
        }
               ]
    
    
        
    
    
    
    
        
    });

  2. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    you can create 3 new instances of the store and put them into the store config. The current MVC implementation is not designed to handle it yet, but there are some extensions and overrides in the forums -> use the search


    best regards
    tobiu
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 1