【问题标题】:Telerik RadGrid ExportToCSV is not working in ChromeTelerik RadGrid ExportToCSV 在 Chrome 中不起作用
【发布时间】:2012-09-22 05:47:53
【问题描述】:

我的 RadGrid 中使用了 Telerik RadGrid ExportToCSV,但它在 Chrome 中不起作用,但它在 FF 和 IE 7、8、9 中起作用。它之前也在 Chrome 中起作用。

问题在于,它不是导出文件,而是在浏览器中显示数据。我不需要在浏览器中查看数据,这就是网格的用途。我只想导出我的 CSV 文件。

如果我没记错的话,Chrome 最近做了一些更改。

之前有没有其他人遇到过这个 Telerik 错误?这个问题有解决办法吗?

【问题讨论】:

    标签: asp.net csv telerik export radgrid


    【解决方案1】:
        With _radGrid
            For Each col In .MasterTableView.Columns
                If (col.GetType.Name.Equals("GridButtonColumn")) Then
                    CType(col, GridButtonColumn).Visible = False
                ElseIf (col.GetType.Name.Equals("GridEditCommandColumn")) Then
                    CType(col, GridEditCommandColumn).Visible = False
                ElseIf (col.GetType.Name.Equals("GridHyperLinkColumn")) Then
                    CType(col, GridHyperLinkColumn).Visible = False
                End If
            Next
            .ExportSettings.IgnorePaging = True
            .ExportSettings.FileName = ExportFileName
            .ExportSettings.IgnorePaging = True
            .ExportSettings.OpenInNewWindow = True
            .MasterTableView.CurrentPageIndex = 0
            .MasterTableView.ExportToCSV()
        End With
    

    其中 ExportFileName 是一个字符串。

    【讨论】:

      猜你喜欢
      • 2015-02-11
      • 2019-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-02
      相关资源
      最近更新 更多