作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我下载 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/
我是一名优秀的程序员,十分优秀!