【问题标题】:Add Title to Devextreme Data Grid for Excel Export为 Excel 导出的 Devextreme 数据网格添加标题
【发布时间】:2018-01-25 15:33:07
【问题描述】:

我正在使用 Devextreme js 组件。我正在将数据加载到 Devextreme data grid 组件,我想添加一个标题以在数据网格中显示。因为当数据网格被导出时,我希望它在 excel 文件中显示标题。 我搜索了但我无法在数据网格的 js devextreme 中找到属性或函数。 我想知道有没有办法为导出的 excel 文件添加标题。

【问题讨论】:

    标签: c# asp.net-mvc devextreme devexpress-mvc


    【解决方案1】:

    dxDataGrid 目前不支持标题but they recommend you to add tittles via Html/CSS,但是这样它就不会导出到 excel。另一方面,这些控件不断发展,因此您可以在下一个版本中查看。

    【讨论】:

      【解决方案2】:

      您可以通过自定义列来尝试一下,并可以根据您的要求进行修改

      https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/ExcelJS/NetCore/Light/

      【讨论】:

        猜你喜欢
        • 2020-12-04
        • 1970-01-01
        • 2023-03-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多