Download Dynamic File with Ajaxified Control

Posted by Community Admin on 04-Aug-2018 21:07

Download Dynamic File with Ajaxified Control

All Replies

Posted by Community Admin on 02-May-2012 00:00
Hi,

I am using the RadScheduler control along with a custom AdvancedForm template.  Part of that template is a button that I want to cause a dynamically generated .ics file to be downloaded.  This file can then be opened to add the calendar event to the user's Outlook calendar.  My problem is that the button is being ajaxified by the RadAjaxManager.  I have gotten around it using the code found in this piece of documentation but it feels forced to me.

http://www.telerik.com/help/aspnet-ajax/ajax-force-controls-to-postback.html 

I was curious if there has been a better way to do this implemented since this page was written.

Thanks,
Richard
Posted by Community Admin on 03-May-2012 00:00
I did this exact thing with a simple ashx file...so the events in the scheduler just need to have a simple link to the ashx, pass along some querystrings like your eventID, return the .ics
Posted by Community Admin on 04-May-2012 00:00
Thanks, I'm going to have to consider which I want to implement for production before I decide but it's unfortunate that there doesn't seem to be an easier way to designate excluded controls from the AjaxManager.
This thread is closed