Server Side sorting in an ExtJS GridPanel

倖福魔咒の 提交于 2019-12-04 03:08:55

No. In the definition for your store just set

remoteSort: true, // to enable sorting
sortInfo: { // the default sort
    field: 'someField',
    direction: 'ASC' | 'DESC'
}

And on the server side you will now be getting a sort and dir request parameters specifying the sort field and direction. When the columns are clicked the store will update sorted by the column and direction you pick.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!