View Full Version : Select local or remote sort depending on data size

7 Dec 2012, 1:00 PM
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?


9 Dec 2012, 8:14 AM
You can probably change the property on the fly. If not then when you send the call you can add params to the request.