Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    6
    Vote Rating
    0
    Iowahc is on a distinguished road

      0  

    Default GroupingView with Directstore?

    GroupingView with Directstore?


    Hy, is it possible to provide data of a directstore to a groupingview?
    the docs say that groupingview needs a groupingstore. anyway to connect those two?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,185
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    Use a GroupingStore along with a DirectProxy.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    44
    Vote Rating
    0
    netsuo is on a distinguished road

      0  

    Default


    Here's an example:
    PHP Code:
            this.directStore =  new Ext.data.GroupingStore(
            {
                
    proxy: new Ext.data.DirectProxy(
                {
                    
    directFnMyFunction
                
    }),
                
    autoLoad
                {
                    
    params:
                    {
                        
    start0
                        
    limit10
                    
    }
                },
                
    baseParams
                {
                    
    filterthis.GetFilter()
                },
                
    readerthis.reader,
                
    sortInfo: {field'ClosedDate'direction"ASC"},
                
    groupField'ProcessId',
                
    groupDir'DESC'
            
    }); 
    Hi from Switzerland !

Similar Threads

  1. DirectStore confusion
    By Lloyd K in forum Ext.Direct
    Replies: 8
    Last Post: 30 Oct 2009, 6:05 AM
  2. [3.0 RC1] DirectStore
    By bas_denis in forum Ext.Direct
    Replies: 2
    Last Post: 19 May 2009, 2:51 PM