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

Cal Export Error

1 Answer 6 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 27 Aug 2015, 07:17 PM

in the sample code at response.end call I get a script error in my .ascx

Line: 885
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

 

private void WriteCalendar(string data)
{
    HttpResponse response = Page.Response;
 
    response.Clear();
    response.Buffer = true;
 
    response.ContentType = "text/calendar";
    response.ContentEncoding = Encoding.UTF8;
    response.Charset = "utf-8";
 
    response.AddHeader("Content-Disposition", "attachment;filename=\"RadSchedulerExport.ics\"");
 
    response.Write(data);
    response.End();
}

1 Answer, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 28 Aug 2015, 07:42 AM
Hi David,

Are you using UpdatePanel or RadAjaxManager on your page? Please note that when exporting you must
do full post-back to the server.

Please check our "iCalendar Export" online demo, where you can see how we achieved this(script.js):

Another suggestion for dealing with this error, you may find in the following link:


Regards,
Aneliya Petkova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
david
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Share this question
or