Exporting /some/ recurring events

9 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 17 Nov 2011 Link to this post

    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

  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 22 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 22 Nov 2011 Link to this post

    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

  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 22 Nov 2011 Link to this post

    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

  6. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 22 Nov 2011 Link to this post

    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
  7. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 25 Nov 2011 Link to this post

    Nikolay?

    --
    Stuart
  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Nov 2011 Link to this post

    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
  9. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 25 Nov 2011 Link to this post

    Peter,

    thanks for letting me know.

    -- 
    Stuart
  10. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 28 Nov 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017