This is a migrated thread and some comments may be shown as answers.

Help Request: RadGrid Export odd behavior.

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 20 Jan 2015, 09:01 PM
OK I was working with the radgrid export functionality and when I press the export button it does a postback and it updates the page with all the rows, and then nothing.

See the attached images. as soon as I click the pdf or csv export buttons on the grid or the separate buttons it re-renders the page with all the records but does not open the PDF or the CSV.

I think I am missing something simple, for I have used export a lot and not had this issue. I am using the most current code base. here is my button code, its really straight forward.

       Protected Sub ExportPDF_Click(sender As Object, e As EventArgs) Handles ExportPDF.Click

            RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount
            RadGrid1.ExportSettings.IgnorePaging = True
            RadGrid1.ExportSettings.OpenInNewWindow = True
            RadGrid1.MasterTableView.ExportToPdf()
        End Sub



What is going on?


1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Jan 2015, 08:52 AM
Hello Richard,

Judging by the description, the problem is that your export button is ajaxified.
Please examine the following topic:
Export from Ajaxified Grid

You can exclude all of the built-in buttons with something like this:
function onRequestStart(sender, args) {
  if (args.get_eventTarget().indexOf("ExportTo") >= 0)
    args.set_enableAjax(false);
}

Regards,
Daniel
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Richard
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or