Hybrid View

  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
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