gpt4 book ai didi

javascript - 如何对 Excel 电子表格进行排序 (KENDO UI)

转载 作者:行者123 更新时间:2023-12-03 07:19:35 28 4
gpt4 key购买 nike

当我下载 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

关于javascript - 如何对 Excel 电子表格进行排序 (KENDO UI),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36266547/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com