1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    7
    Vote Rating
    0
    AudiGeist is on a distinguished road

      0  

    Default How do I use my custom next() function for the PagingToolbar in Ext JS 2.1?

    How do I use my custom next() function for the PagingToolbar in Ext JS 2.1?


    I have a need to call my own next() function for the PagingToolbar rather than the default moveNext() function because I'm calling SOAP services to get the data back. I'm not using a proxy in the store and I pass a JSON object to the store.loadData function. Each time next or previous pages are selected I need to call my own functions which hits the service. What method is the best way to do this? I've seen override and addListener examples but I don't know where to begin. Here is how I've created the paging toolbar which is essentially copied from the paging example.

    var grid = new Ext.grid.GridPanel({
    el:'grid-placeholder',
    width:700,
    height:500,
    title:'Results - Test',
    store: store,
    cm: cm,
    trackMouseOver:false,
    sm: new Ext.grid.RowSelectionModel({selectRow:Ext.emptyFn}),
    loadMask: true,
    viewConfig: {
    forceFit:true,
    enableRowBody:true
    },

    bbar: new Ext.PagingToolbar ({
    pageSize: 25,
    store: store,
    displayInfo: true,
    displayMsg: 'Displaying records {0} - {1} of {2}',
    emptyMsg: "No records to display"
    })
    });

    Thanks.
    Last edited by AudiGeist; 14 Apr 2010 at 11:01 AM. Reason: code formatting

  2. #2
    Ext User
    Join Date
    Apr 2010
    Posts
    7
    Vote Rating
    0
    AudiGeist is on a distinguished road

      0  

    Default How to override paging functions.

    How to override paging functions.


    Nevermind. This thread answers my question.

    http://www.extjs.com/forum/showthread.php?76125-How-to-override-paging-grid-buttons

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..." hd porno faketaxi