easyui 客户端排序

来源:互联网 发布:手机淘宝开店的流程图 编辑:程序博客网 时间:2024/05/21 17:15

easyui 客户端排序

easyui默认排序是服务器端排序,可以通过设置属性改为客户端排序。

排序列设置:sortable:true
表格上设置:remoteSort:false

 $("#testDatagrid").datagrid(            {                url : "/getData",                method : 'post',                remoteSort:false,                columns : [ [  {                    field : 'sort_col1',                    title : 'sort_col1',                    sortable:true                }, {                    field : 'sort_col2',                    title : 'sort_col2',                    sortable:true                } ] ]     });
0 0