Hi,
How do you you insert a new resource to a appointment programatically? I have teh employee in a drop down list and want to obtain that value and put it into a new appoitnment. I can see there are two possible options (appointment.owner or appointment.resources) I have tried both to no avail. Below is a snippet of my code which I hope will put my question into context.
Thanks,
JK
How do you you insert a new resource to a appointment programatically? I have teh employee in a drop down list and want to obtain that value and put it into a new appoitnment. I can see there are two possible options (appointment.owner or appointment.resources) I have tried both to no avail. Below is a snippet of my code which I hope will put my question into context.
| Telerik.Web.UI.Appointment appointment = new Telerik.Web.UI.Appointment(); |
| appointment.Start = DateTime.Parse(starttime.ToString()); |
| appointment.End = DateTime.Parse(endtime.ToString()); |
| appointment.Subject = Reg.Text + strCRLF.ToString() + jobtype.SelectedItem.ToString() + strCRLF.ToString() + "Employee:" + employee.SelectedItem.ToString(); |
| Scheduler.InsertAppointment(appointment); |
JK