Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    40
    Vote Rating
    0
    teddy11 is on a distinguished road

      0  

    Default Unanswered: MVC and sliding pager

    Unanswered: MVC and sliding pager


    I am using mvc to create a tabbed grid with a sliding pager on the bottom bar. My problem is: I can not click on the sliding pager. I am stuck on the first page. Attached you will find my code, Please tell me what I am doing wrong:
    Code:
    "app.js"
    Ext.Loader.setConfig({enabled:true});
    Ext.application({
    
        name: 'AM',
        appFolder: 'app',
        controllers: ['TabsController'],
        requires: [
        'Ext.grid.*',
        'Ext.data.*',
        'Ext.tab.*',
        'Ext.toolbar.Paging'
        ],
        launch: function() {
            }
    
        });
    Here is what my controller looks like(models,stores,views list emptied ):
    Code:
    Ext.define('AM.controller.TabsController', {
        extend: 'Ext.app.Controller',
        models: [..],
        stores: [...],
        views: [...],
        
        init: function() {
            Ext.create('Ext.tab.Panel', {
                //layout: 'fit',
                height: 700,
                width: 620,
                
                activeTab: 0,
                items: [
                    {xtype: 'one'},
                    {xtype: 'two'},
                    {xtype: 'three'},
                    {xtype: 'four'}
                ],
                //bbar: Ext.create('Ext.toobar.Paging', {
                bbar : {
                        xtype:'pagingtoolbar',
                        pageSize: 50,
                        store: this.stores,
                        displayInfo: true,
                        plugins: Ext.create('Ext.ux.SlidingPager', {})
                    },//),
                renderTo: document.body
            });
        }
    });
    Here is a picture of what the bottom bar looks like:
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,521
    Answers
    3447
    Vote Rating
    814
    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


    Paging toolbar is meant to work with one store but looks like you are giving it one store.
    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
    Mar 2012
    Posts
    40
    Vote Rating
    0
    teddy11 is on a distinguished road

      0  

    Default


    ok... I was hoping
    HTML Code:
    store: this.stores
    will work. Clearly it doesn't.
    Is there a way to make this work?
    I tried adding all the stores (below)and it only worked for the first store.
    HTML Code:
                        store: 'store1',
                        store: 'store2',

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,521
    Answers
    3447
    Vote Rating
    814
    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


    Of course it only worked for the last store given, properties of an object must be unique and last one will overwrite any that come before.
    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.

Thread Participants: 1