Set appointment id client side

2 posts, 0 answers
  1. Evgeny
    Evgeny avatar
    1 posts
    Member since:
    Jan 2008

    Posted 09 Aug 2011 Link to this post

    Hi,

    I want  to use my custom jquery popup form for creating new appointment.
    The flow is as follow:
    1. double click on scheduler
    2. jquery dialog is opened
    3. user clicks save and all data is saved with ajax post to the database
    4. new appointment is created with client side API with the code similar the one that is shown below

    var newAppointment = new Telerik.Web.UI.SchedulerAppointment();
    ...
    newAppointment.set_start(startTime);
    newAppointment.set_end(endTime);
    newAppointment.set_subject("Manually Inserted Appointment");
    ...
    sender.insertAppointment(newAppointment);

    at this point I already have appointment id and for me it was logical to expect that I can set id to appointment with something like 
    
    newAppointment.set_id(appointmentId);

    but id is read only.

    Is there any way I can set id for the newly created appointment?

    Thanks in advanced.
    Evgeny
  2. Plamen
    Admin
    Plamen avatar
    2933 posts

    Posted 12 Aug 2011 Link to this post

    Hi Evgeny,

    Here is the project that I sent to the associate support ticket that shows how to get the id of the client side created appointment.

    Hope this is helpful.

    Greetings, Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top