RadScheduler Retrieving DataKeyField

3 posts, 1 answers
  1. Sasha
    Sasha avatar
    8 posts
    Member since:
    Feb 2011

    Posted 17 Nov 2011 Link to this post

    So I'm wondering if it's possible to retrieve the DataKeyField of the Appointment inside the OnAppointmentDelete event and how (server-side not client-side)?

    Regards,
    Sasha.
  2. Answer
    Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 19 Nov 2011 Link to this post

    Hello Sasha,

    Server Side
    protected void radschClassScheduler_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
        {
              string StrID =        e.Appointment.ID.ToString();
    }

    Client Side:
    function ClientAppointmentDeleting(sender, args) {
                   alert(args._appointment._id);
               }
    <telerik:RadScheduler ID="RadScheduler1" runat="server"
          OnClientAppointmentDeleting="ClientAppointmentDeleting">


    Thanks,
    Jayesh Goyani
  3. Sasha
    Sasha avatar
    8 posts
    Member since:
    Feb 2011

    Posted 20 Nov 2011 Link to this post

    Hey Jayesh,

    That worked. Thx for your help. Wish Telerik's documentation said something on the subject.

    Cheers,
    Sasha.
Back to Top