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
    Apr 2011
    Posts
    3
    Vote Rating
    0
    fabio3534 is on a distinguished road

      0  

    Default Paging with MemoryProxy doesnt work

    Paging with MemoryProxy doesnt work


    im trying to use paging with data in client side (memoryproxy), but it doenst work.
    all data are aways shown in grid and nothing happens when i try to change the page.
    whats wrong??

    Code:
     Ext.onReady(function() {
                Ext.QuickTips.init();
    
                store = new Ext.data.Store({
                    totalProperty: 2,
                    fields: [
                        {name: 'nome' },
                        {name: 'sexo' },
                        {name: 'nascimento',  type: 'date', dateFormat: 'Y-m-d h:i:s' },
                    ],
                    data: json_data,
                    proxy:
                        {
                        type:'memory',
                        reader:{
                            type:'json'
                        }
                    }
    
                });
    
                // create the Grid
                grid = new Ext.grid.GridPanel({
                    store: store,
                    columnLines: true,
                    totalProperty:2,
                    columns: [
                        {
                            text     : 'Nome',
                            flex     : 4,
                            width    : 200,
                            sortable : true,
                            dataIndex: 'nome'
                        },
                        {
                            text     : 'Sexo',
                            flex     : 1,
                            width    : 10,
                            sortable : true,
                            dataIndex: 'sexo'
                        },
                        {
                            text     : 'Nascimento',
                            width    : 135,
                            flex     : 1,
                            sortable : true,
                            renderer : Ext.util.Format.dateRenderer('d/m/Y'), // formato de exibição
                            dataIndex: 'nascimento'
                        }
                    ],
                    bbar: new Ext.PagingToolbar({
                       store:store,
                       pageSize:2
                    }),
                    height: 350,
                    width: '100%',
                    renderTo: 'grid'
                });
                grid.render();
                store.load({params: {start:0,limit:2}});
            });

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    3
    Vote Rating
    0
    fabio3534 is on a distinguished road

      0  

    Default


    ?

Similar Threads

  1. Scoll doesnt work
    By cn1h in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 7 Apr 2011, 2:23 AM
  2. Ext.get('id') doesnt work with ManagedIFrame?
    By njw in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Mar 2009, 7:53 AM
  3. MemoryProxy need help with paging
    By Akamy2kidsmom in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Nov 2008, 7:07 AM