如何对excel电子表格进行排序(KENDO UI)

How to sort excel spreadsheet (KENDO UI)

本文关键字:排序 KENDO UI excel 电子表格      更新时间:2023-09-26

当我下载excel文件时,我的电子表格没有排序。

也许你知道这件事?

请帮忙(

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}'
      },

您需要使用saveAsExcel API方法将UI中的排序和过滤应用于使用excel文档创建的zip。作者(KendoUI)的一个很好的教程可以在以下位置找到:

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