Hi, I have an Export to Excel button (image button) that sits inside an Ajaxified RadPageView and a mult-tabbed interface and as you guessed by the title, The excel file does not export even though the following code executes without error.
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click
Dim filename As String
filename = Membership.ApplicationName.ToString & txtFirstName.Text & "_" & txtLastName.Text & "_" & lblmemberID.Text & "_OrderHistory"
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.ExportSettings.FileName = filename
RadGrid1.ExportSettings.ExportOnlyData = True
RadGrid1.ExportSettings.IgnorePaging = True
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.MasterTableView.ExportToExcel()
End Sub
Does anyone know how I can keep the Ajax but have the export perform as desired? Thanks.
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click
Dim filename As String
filename = Membership.ApplicationName.ToString & txtFirstName.Text & "_" & txtLastName.Text & "_" & lblmemberID.Text & "_OrderHistory"
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.ExportSettings.FileName = filename
RadGrid1.ExportSettings.ExportOnlyData = True
RadGrid1.ExportSettings.IgnorePaging = True
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.MasterTableView.ExportToExcel()
End Sub
Does anyone know how I can keep the Ajax but have the export perform as desired? Thanks.