1. #291
    Sencha User
    Join Date
    Jan 2010
    Posts
    8
    Vote Rating
    0
    phweeyee is on a distinguished road

      0  

    Default


    Quote Originally Posted by dlogic View Post
    Hi Bob,

    Sorry I'm still struggling (I think due to my lack of knowledge). My view is based on the MVC example supplied with the Grid extension and calls the data using a proxy. I'm not sure where to add the xtype for buttonlist. My code is:

    Code:
    Ext.define('PlayerAdmin.view.SessionDetails', {    extend: 'Ext.navigation.View',
        xtype:  'sessiondetails',
        requires: [
            'Ext.grid.List',
            'Ext.grid.ButtonsGrid',
            'Ext.grid.feature.Sorter'
        ],
        initialize: function() {
    
    
            // get the data object that hold the current active player        
            var dataObj             =  this.dataObj;        
    
    
            if (dataObj) {
                var playerName      =  dataObj.get('playerName'),
                    playerId        =  dataObj.get('id'),
                    sessionId       =  dataObj.get('sessionID'),                      
                    visitID         =  dataObj.get('visitID'),
                    tableType       =  dataObj.get('tableType');
            }; 
    
    
            // update top toolbar with correct title
            var mainToolbar = Ext.getCmp('mainToolbar');
            mainToolbar.setTitle('Session Details: '+playerName);
    
    
            // hide start session button
            Ext.getCmp('statSessionButton').hide();
            Ext.getCmp('clubName').hide(); 
            Ext.getCmp('backButton').show(); 
    
    
            // get panel ID to set mask       
            var panel           = Ext.getCmp('ext-viewport');
    
    
    
    
            var model = Ext.define('SessionDetails', {
                extend : 'Ext.data.Model',
    
    
                config : {
                    fields : [
                        'type',
                        'amount',
                        'note',
                        'date',
                        'void',
                        'actions'
                    ],
                    proxy : {
                        type        : 'ajax',
                        url         : 'app/ajax/sessionDetailsAjax.php',
                        reader      : {
                            type           : 'coljson',
                            rootProperty   : 'data',
                            columnProperty : 'columns'
                        },
                        extraParams : {
                            sessionId:        sessionId,
                        }
                    }
                }
            });        
    
    
            var store = Ext.create('Ext.data.Store', {
                autoLoad  : true,
                model     : model,
                pageSize  : 5,
                listeners : {
                    load : function(store) {
                        var proxy   = store.getProxy(),
                            reader  = proxy.getReader();
                            //columns = reader.getColumns();
    
    
                        //grid.setColumns(columns);
    
    
                        var panel           = Ext.getCmp('ext-viewport');// get viewport
                        panel.unmask(); // remove loading mask  
                    }
                }
            });
    
    
            var grid = Ext.create('Ext.grid.List', {
                fullscreen : true,
                width:          '100%',
                height:         '100%',
                store      : store,
                columns  : [
                    {
                        header    : 'Type',
                        dataIndex : 'type',
                        style     : 'padding-left: 1em;',
                        width     : '16.6%',
                        filter    : { type : 'string' }
                    },
                    {
                        header    : 'Amount',
                        dataIndex : 'amount',
                        style     : 'text-align: center;',
                        width     : '16.6%',
                        filter    : { type : 'numeric' }
                    },
                    {
                        header    : 'Note',
                        dataIndex : 'note',
                        style     : 'text-align: center;',
                        width     : '16.6%',
                    },
                    {
                        header    : 'Date',
                        dataIndex : 'date',
                        style     : 'text-align: center;',
                        width     : '20%',
                    },
                    {
                        header    : 'Void',
                        dataIndex : 'void',
                        style     : 'text-align: center;',
                        sortable  : false,
                        width     : '10%'
                    },
    
    
                ]            
            });
    
    
    
    
            this.add([grid]);   
    
    
        },
        config: {                        
            navigationBar: {
                hidden: true
            },                  
        } 
    });

    I am having the same problem as you. Have you got the solution to your question?

  2. #292
    Sencha User
    Join Date
    Apr 2012
    Posts
    20
    Vote Rating
    1
    jfordyce@m2mdatacorp.com is on a distinguished road

      0  

    Default


    Is anyone seeing issues with directional sorting in the latest ST2.2.1 and Ux.Touch.Grid 2.2. Seems i can only sort one direction. Works fine under ST2.1

    Grouping is on if that makes a difference.

  3. #293
    Sencha User
    Join Date
    Jan 2008
    Posts
    72
    Vote Rating
    0
    csextjs is on a distinguished road

      0  

    Default


    Great as always Mitchell.

    Since Sencha now offers touch grid as a product, I was wondering about
    the future of your Ext.ux.touch.grid.

    Are you plan to continue maintain and upgrade this(Ext.ux.touch.grid)?

  4. #294
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Quote Originally Posted by csextjs View Post
    Great as always Mitchell.

    Since Sencha now offers touch grid as a product, I was wondering about
    the future of your Ext.ux.touch.grid.

    Are you plan to continue maintain and upgrade this(Ext.ux.touch.grid)?
    In a very limited fashion, I will not be attempting to make it like the official touch grid as I work for Sencha and don't want to be a direct competitor. I do accept pull requests from anyone, course I can approve/deny but I won't deny because it's approaching the official touch grid's functionality, only for syntax issues or if I don't think it's good.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #295
    Sencha User
    Join Date
    Jan 2008
    Posts
    72
    Vote Rating
    0
    csextjs is on a distinguished road

      0  

    Default


    Thanks for the quick reply.

    I understand.
    As long as the features you have currently are maintained, I will be very happy.

    BTW, will Ext.ux.tourch.grid work with ST 2.3?
    Are there any known issues?

    Thanks again.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi