Is there a way in ExtJS 4.1.3 to set a default sort on a Grid with a backing store set to remoteSort: true
?
I missed the sorters config in documentation, the default sort can be set by
sorters: [ {
property: 'valuetosort',
direction: 'ASC'
} ],
Also, if you want to set sorters dynamicaly and remoteSort is true, then you can use method sort and pass sorters configuration into single parameter.
store.sort([{
property: 'valuetosort',
direction: 'ASC'
}])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With