简体   繁体   中英

How to sort excel spreadsheet (KENDO UI)

when i download excel file, my spreadsheet has not sorting.

maybe you know about it ?

Help please (

 vm.gridOptionsUpdate = { excel: { allPages: true, fileName: 'rates-upload.xlsx' //sort: { field: "rate", dir: "desc" } // i need somthing like that }, excelExport: function (e) { ... } sortable: true, pageable: true, selectable: 'multiple cell', allowCopy: true, reorderable: true, columns: [ { field: 'rate', title: 'Current Rate (EUR/SMS)', format: '{0:n4}' }, 

You need to use the saveAsExcel API method to get the sorting and filtering applied in your UI to the zip created with the excel document. A good tutorial on this from the authors (KendoUI) can be found at:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/excel-export

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM