View Full Version : Grid-Sorting -- change GET-variable "sort" to another

5 Jul 2012, 1:33 AM
Hi all,

I'm using ExtJS with another framework.
This framework parses the "sort"-variable from the request and after this the variable is empty when it comes to my script.

This is the reason why remote sorting doesn't work for my grid with Ext.data.Store.
I'm using ExtJS 4.1 (not trunk).

Can anyone tell me how I tell ExtJS to use another variable than "sort"? I will afterwards change my .php-script that provides the remotecall.

Thanks a lot,

5 Jul 2012, 2:37 AM
I found the answer for myself.
The param is set in the proxy with the name "sortParam":

proxy: {
type: 'ajax',
sortParam: 'sorter',
url: 'http://xxx/xxx',
reader: {
type: 'json',
root: 'results'