ExtJS sets default sorting to remote sorts repository?

Is there a way in ExtJS 4.1.3 to set default sorting on a grid with backup storage set to remoteSort: true ?

+7
source share
2 answers

I skipped the sorters configuration in the documentation, default sorting can be set

 sorters: [ { property: 'valuetosort', direction: 'ASC' } ], 
+11
source

In addition, if you want to install sorters dynamically, and remoteSort is true, you can use the sort method and pass the sorters configuration in one parameter.

 store.sort([{ property: 'valuetosort', direction: 'ASC' }]) 
+2
source

All Articles