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

Set appointment id client side

1 Answer 35 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Evgeny
Top achievements
Rank 1
Evgeny asked on 09 Aug 2011, 03:00 PM
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

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Aug 2011, 02:32 PM
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.

Tags
Scheduler
Asked by
Evgeny
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or