Mmm, i have tried this demo and can't figure out how you got it to work with the 'Export All' appointments. We dont allow the single appointments in the Scheduler, its all or nothing in our particular application.
We have a button (outside the Schedulker control)
<
telerik:RadButton
ID
=
"ImageDownloadCalendar"
runat
=
"server"
OnClick
=
"ImageDownloadCalendar_Click"
Width
=
"64px"
Height
=
"64px"
>
<
Image
ImageUrl
=
"~/images/downloadcalendar.png"
/>
</
telerik:RadButton
>
... this code correctly does the postback and fires off the 'RadScheduler.ExportToICalendar", but nothing happens.
Dim myResponse As HttpResponse = Page.Response
myResponse.Clear()
myResponse.Buffer = True
myResponse.ContentType = "text/calendar"
myResponse.ContentEncoding = Encoding.UTF8
myResponse.Charset = "utf-8"
myResponse.AddHeader("Content-Disposition", "attachment;filename=""EventSchedulerExport.ics""")
myResponse.Write(MyData)
' myResponse.[End]()
HttpContext.Current.ApplicationInstance.CompleteRequest()
...we tried with the "myReponse.End" but receive the "Thread was being aborted" error, so we handled it, but nothing happens at all. The download window does not pop up in the browser. We have other downloads which correctly shows the download window. The 'MyData' variable is passed into this routine from the Export button click event and correctly has the appointments in the string.
We don't receive any errors, it just continues as if everything worked (w/o a popup window). Again, we have other downloads that work fine with PDFs and what not, cant understand why this simple routine does not work. We took the code straight from the Demo you mentioned.
Anyone have any suggestions or some insight to getting a seperate button to export all appointments?
Thanks!