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
    Ext User
    Join Date
    Feb 2010
    Posts
    2
    Vote Rating
    0
    richhoude is on a distinguished road

      0  

    Default using EXT with client side page controller

    using EXT with client side page controller


    Hi all, I am new to EXT and JavaScript in general. What I am trying to do is add a GridPanel with a PagerToolbar. What I need to have happen is have yhe paging and sort events fire a method that lets the page controller know the arguments have changed then the page controller will get the new arguments then request the data. The controller will then return the data and then we load the store. I was looking at extending the store load but I am not sure this is the correct approach. Any suggestions would be helpful.
    Thanks.

  2. #2
    Ext User
    Join Date
    Jun 2008
    Posts
    9
    Vote Rating
    0
    txg35 is on a distinguished road

      0  

    Default


    You want to "intercept" the sorting & paging requests, make the ajax call through your own mechanism, and then return the results to the grid. correct?

    I did this in Ext 2.2. Extend the Ext.data.DataProxy and override the behaviors of load, loadResponse, and loadException.

    We added a little extra sugar to the process. We allowed the load method to call an external method that we set up during the config. This allowed our business logic class to adjust any search parameters.

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    2
    Vote Rating
    0
    richhoude is on a distinguished road

      0  

    Default


    Thank you very much. This sounds like exactly what I need. When you say you allowed the load method to call and external method, this sounds like something I might need. You would not have an example I could look at would you?

  4. #4
    Ext User tonedeaf's Avatar
    Join Date
    Dec 2007
    Posts
    137
    Vote Rating
    1
    tonedeaf is on a distinguished road

      0  

    Default


    ExtJS Store already allows making remote requests instead of paging the records locally. Its a configurable setting when you create the store.
    Take a look at the remoteSort and remoteGroup (if you're using a GroupingStore) properties of the Store class.

Thread Participants: 2