kendo 服务端排序
生活随笔
收集整理的這篇文章主要介紹了
kendo 服务端排序
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
z折騰了一天。。
參考 :https://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.sortable.compare
關(guān)鍵代碼
parameterMap: function(data, type) {if(data.sort) {var sortObj = data.sort[0];typeSort = sortObj.dir;typeName = sortObj.field;switch(typeName) {case 'gongBuRi':typeName = 'GONG_BU_RI';break;case 'gongGaoBT':typeName = 'GONGGAO_BT';break;}// data.orderByType = typeSort;// data.orderBy = typeName;data.sort[0] = {};data.orderByType = typeSort;data.orderBy = typeName;}return data;// if type is "read", then data is { foo: 1 }, we also want to add { "bar": 2 }}serverPaging: true,serverSorting: true,
歡迎交流學(xué)習(xí)
轉(zhuǎn)載于:https://www.cnblogs.com/xuhongli/p/7637870.html
總結(jié)
以上是生活随笔為你收集整理的kendo 服务端排序的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: NXP iMX8 SCFW和Boot C
- 下一篇: C#赋值运算符及解析