1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
    tino7_03 is on a distinguished road

      0  

    Default Ext.ux.touch.grid.View: Best way to get paging toolbar

    Ext.ux.touch.grid.View: Best way to get paging toolbar


    I would like to get paging toolbar (when used) and change the docked config value to "bottom".
    For to have always the same result I think also is a good way to inherit Ext.ux.touch.grid.View class, but I need to have a reference to a paging toolbar in my new class.

    PHP Code:
    Ext.define('Ext.gp.Grid', {    extend'Ext.ux.touch.grid.View',    }) 
    Can you help me?
    thanks again

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    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


    Code:
    {
        ftype    : 'Ext.ux.touch.grid.feature.Paging',
        launchFn : 'initialize'
        pager    : {
            xtype  : 'toolbar',
            docked : 'bottom',
            layout : {
                type : 'hbox'
            }
        }
    }
    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.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
    tino7_03 is on a distinguished road

      0  

    Default


    I've tryed and it's works if I change
    Code:
    pager      = me.getPager();
    to

    Code:
    pager      = this.pager;
    in "init" functions of "Ext.ux.touch.grid.feature.Paging" class


    it seems that the getter doesn't works...

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    898
    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


    Did you require the feature before you created the grid?
    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. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
    tino7_03 is on a distinguished road

      0  

    Default


    I'd like to have a grid with the pager to the bottom at its start...

    Code:
    {
                            xtype:'touchgridpanel',
                            
                            store      : Ext.create('GpMobile.store.Customers'),
                            features   : [
                                
                                {
                                    ftype    : 'Ext.ux.touch.grid.feature.Sorter',
                                    launchFn : 'initialize'
                                },
                               {
                                    ftype    : 'Ext.ux.touch.grid.feature.Paging',
                                    launchFn : 'initialize',
    
    
                                        pager    : {
                                            xtype  : 'toolbar',
                                            docked : 'bottom',
                                            layout : {
                                                type : 'hbox'
                                            }
                                        } 
    
    
                                    
                                }
                            ],
                            columns   : [
                                {
                                    header    : 'Ragione sociale',
                                    dataIndex : 'an_descr1',
                                    width     : '100%',
                                    //sortable  : true
                                }
                            ]
                        }

Thread Participants: 1