1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    7
    Answers
    1
    Vote Rating
    0
    ascii is on a distinguished road

      0  

    Default Unanswered: Select local or remote sort depending on data size

    Unanswered: Select local or remote sort depending on data size


    I load an infinite scrolling grid using store.guaranteeRange(). Sometime, depending on the number of results from my search, all the results will be returned. Sometimes only the first part will be returned. This is as expected.

    What I would like to do is to use local sorting if all the data fit in the buffer, and remote sorting if I don't have it all locally. I don't know which until the first results come back. Is there a way to change between local and remote sorting depending on the number of results? It seems that you have to define sorting to be local or remote when you create the store. Same with filtering.

    Any suggestions?

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Answers
    3356
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can probably change the property on the fly. If not then when you send the call you can add params to the request.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar