Hi Telerik Community,
I am using the Telerik ASP.NET AJAX controls (version 2011.1.519.35) and trying to export a file. I would like the file extension to be .txt, but it just freezes on the button click - see code below.
When I use any thing else for the file extension, it works properly, but when I set the FileExtension = "txt" it does not work, just freezes up. For example, if I use FileExtension = "tx" it will work just fine. It only freezes when it is "txt"
Does anyone have any ideas of what is causing this, or how to get it to export with the txt extension?
Thanks,
Joe
I am using the Telerik ASP.NET AJAX controls (version 2011.1.519.35) and trying to export a file. I would like the file extension to be .txt, but it just freezes on the button click - see code below.
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click RadGrid1.ExportSettings.FileName = "Export" RadGrid1.ExportSettings.ExportOnlyData = True RadGrid1.ExportSettings.IgnorePaging = True RadGrid1.ExportSettings.Csv.ColumnDelimiter = Telerik.Web.UI.GridCsvDelimiter.Tab RadGrid1.ExportSettings.Csv.RowDelimiter = Telerik.Web.UI.GridCsvDelimiter.NewLine RadGrid1.ExportSettings.Csv.EncloseDataWithQuotes = False RadGrid1.ExportSettings.Csv.FileExtension = "txt" RadGrid1.MasterTableView.ExportToCSV()End SubWhen I use any thing else for the file extension, it works properly, but when I set the FileExtension = "txt" it does not work, just freezes up. For example, if I use FileExtension = "tx" it will work just fine. It only freezes when it is "txt"
Does anyone have any ideas of what is causing this, or how to get it to export with the txt extension?
Thanks,
Joe
