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

Exporting /some/ recurring events

8 Answers 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
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 ...
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
METHOD:PUBLISH
END:VCALENDAR
and if I try and import it in to Outlook it complains, unsurprisingly.

What am I missing?

--
Stuart

8 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 22 Nov 2011, 12:49 PM
Hello Stuart,

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?

Regards,
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 ...
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 ...
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
0
Stuart Hemming
Top achievements
Rank 2
answered on 25 Nov 2011, 12:27 PM
Nikolay?

--
Stuart
0
Peter
Telerik team
answered on 25 Nov 2011, 05:12 PM
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
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
0
Nikolay Tsenkov
Telerik team
answered on 28 Nov 2011, 09:02 AM
Hi Stuart,

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.

Regards,
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
Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Nikolay Tsenkov
Telerik team
Stuart Hemming
Top achievements
Rank 2
Peter
Telerik team
Share this question
or