Stuart Hemming
Top achievements
Rank 2
Stuart Hemming
asked on 17 Nov 2011, 03:15 PM
I have a scheduler where each appointment has an export option, as well as the scheduler as a whole.
If I export all the appointments on the scheduler, everything works.
If I export a recurrence master, that works too.
If I try and export a single recurrence instance though, all I get is this ...
and if I try and import it in to Outlook it complains, unsurprisingly.
What am I missing?
--
Stuart
If I export all the appointments on the scheduler, everything works.
If I export a recurrence master, that works too.
If I try and export a single recurrence instance though, all I get is this ...
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
METHOD:PUBLISH
END:VCALENDAR
What am I missing?
--
Stuart
8 Answers, 1 is accepted
0
Hello Stuart,
Nikolay Tsenkov
the Telerik team
I have tested the scenario on our demo for iCalendar Export, here: http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx
But I wasn't able to reproduce the issue.
Could you, please, post an example that will reproduce it?
Nikolay Tsenkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Stuart Hemming
Top achievements
Rank 2
answered on 22 Nov 2011, 01:00 PM
Hmmm.
Looking at the code in your example, you call this ...
When this code is called and you have clicked on an Occurrence of the recurring appointment, is it the Ocuurence or the master that is passed to ExportToICanlendar()?
In our code, it is the Occurrence.
--
Stuart
Looking at the code in your example, you call this ...
protected
void
RadScheduler1_AppointmentCommand(
object
sender, AppointmentCommandEventArgs e)
{
if
(e.CommandName ==
"Export"
)
{
WriteCalendar(RadScheduler.ExportToICalendar(e.Container.Appointment));
}
}
When this code is called and you have clicked on an Occurrence of the recurring appointment, is it the Ocuurence or the master that is passed to ExportToICanlendar()?
In our code, it is the Occurrence.
--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 22 Nov 2011, 01:01 PM
Hmmm.
Looking at the code in your example, you call this ...
When this code is called and you have clicked on an Occurrence of the recurring appointment, is it the Ocuurence or the master that is passed to ExportToICanlendar()?
In our code, it is the Occurrence.
--
Stuart
Looking at the code in your example, you call this ...
protected
void
RadScheduler1_AppointmentCommand(
object
sender, AppointmentCommandEventArgs e)
{
if
(e.CommandName ==
"Export"
)
{
WriteCalendar(RadScheduler.ExportToICalendar(e.Container.Appointment));
}
}
When this code is called and you have clicked on an Occurrence of the recurring appointment, is it the Ocuurence or the master that is passed to ExportToICanlendar()?
In our code, it is the Occurrence.
--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 22 Nov 2011, 01:04 PM
Nikolay,
Sorry about the double post, you server keeps reporting an error.
I should point out that we aren't handling the AppointmentCommand event to produce our export; it is being managed by an Ajax Request that gets the selected appointment (ie the Occurrence) from the Appointments collection and sned that the the ExportToICalendar() method.
--
Stuart
Sorry about the double post, you server keeps reporting an error.
I should point out that we aren't handling the AppointmentCommand event to produce our export; it is being managed by an Ajax Request that gets the selected appointment (ie the Occurrence) from the Appointments collection and sned that the the ExportToICalendar() method.
--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 25 Nov 2011, 12:27 PM
Nikolay?
--
Stuart
--
Stuart
0
Hi Stuart,
Nikolay will be able to reply to your query on Monday, next week.
We are sorry for the delay.
Greetings,
Peter
the Telerik team
Nikolay will be able to reply to your query on Monday, next week.
We are sorry for the delay.
Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Stuart Hemming
Top achievements
Rank 2
answered on 25 Nov 2011, 05:44 PM
Peter,
thanks for letting me know.
--
Stuart
thanks for letting me know.
--
Stuart
0
Hi Stuart,
Nikolay Tsenkov
the Telerik team
I apologize for the delayed answer.
It's Ocurrence.
You can test it (I did this way), by breaking the execution of the RadScheduler1_AppointmentCommand handler and check the e.Appointment.RecurrenceState in the Watch Window.
Nikolay Tsenkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now