Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ExtJS 4.1.3 中有没有办法在 Grid 上设置默认排序,并将后备存储设置为remoteSort: true?
remoteSort: true
我错过了文档中的排序器配置,默认排序可以通过
sorters: [ { property: 'valuetosort', direction: 'ASC' } ],
此外,如果您想动态设置排序器并且 remoteSort 为真,那么您可以使用方法排序并将排序器配置传递给单个参数。
store.sort([{ property: 'valuetosort', direction: 'ASC' }])