1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    56
    Vote Rating
    -1
    squalo is an unknown quantity at this point

      0  

    Default Grid does not do paging

    Grid does not do paging


    Hello
    I'm struggling for days now, but with no success.

    I got no paging through my grid, though the pagingbar shows amount and count of pages right.
    Here are some code snippets:

    model:
    PHP Code:
    Ext.define('TBS', {
            
    extend'Ext.data.Model',
    ...

    proxy: {
                
    type'direct',
                
    api: {
                    
    create:        QueryDatabase.createRecord,
                    
    read:        QueryDatabase.getResults,
                    
    update:        QueryDatabase.updateRecords,
                    
    destroy:    QueryDatabase.destroyRecord
                
    },
                
    simpleSortModetrue
            
    }
    ... 
    store:
    PHP Code:
    var store Ext.create('Ext.data.Store', {
            
    model'TBS',
            
    autoLoadtrue
            
    autoDestroytrue,
            
    pageSize20
            
    remoteSortfalse,   
            
    sortOnLoadtrue,
            
    sorters: { property'StartDate'direction 'DESC' }
    ... 
    and the grid:

    PHP Code:
    var grid Ext.create('Ext.grid.Panel', {
    ....
            
    dockedItems: [{
                
    xtype'pagingtoolbar',
                
    dock'bottom',
                
    storestore,
                
    pageSize20
                
    displayInfotrue,
                
    displayMsg'Total: {2}',
                
    items: ['-',{
                    
    xtype'button',
                    
    iconCls'clean',
                    
    text'Clear All Filter',
                    
    handler: function () {
                        
    //console.log(Ext.encode(grid.filters.getFilterData()));
                        
    grid.filters.clearFilters();
                        
    store.clearFilter();
                    } 
                }]
            }]
    ... 
    I'm using ExtJs 4.0.7

    Any hints are very appreciated.

    Thx.

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    56
    Vote Rating
    -1
    squalo is an unknown quantity at this point

      0  

    Default Either this thread could be deleted, or...

    Either this thread could be deleted, or...


    you look here:
    (it is solved. at least fo my needs)

Tags for this Thread

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