Not able add multiple appointments through code for Schedule control(ASP.NET)

Hi,

I am unable to create multiple appointments through code. Please find the attached document for details and let me know if you need further information.

Thank you in advance.

Regards,
Phani.



Schedule Control_58a87812.zip

1 Reply

RS Rajarajeswari S Syncfusion Team August 23, 2008 09:55 AM UTC


Hi Phani,

Thanks for using Syncfusion products.

I am afraid that I am not able to reproduce the issue, that you have mentioned here. Please refer the following steps that I tried to reproduce it.

1. Created a simple sample with Schedule control.
2. Created DataTable with appointments.
3. Loop through the DataTable and added the appointments with ScheduleControl.

Please refer the below code snippet which illustrates this:

DataTable dt = GetGridData();
foreach (DataRow dr in dt.Rows)
{
ScheduleWebAppointment appointment = new ScheduleWebAppointment();
appointment.UniqueID = Convert.ToInt32(dr[0].ToString());
appointment.Owner = Convert.ToInt32(dr[4].ToString());
appointment.Subject = dr[3].ToString();
appointment.StartTime = Convert.ToDateTime(dr[1].ToString());
appointment.EndTime = Convert.ToDateTime(dr[2].ToString());
this.Scheduler1.Appointments.Add(appointment);
}

Please refer the sample from the below link, which illustrates this:

http://www.syncfusion.com/support/user/uploads/Sample_2e55f274.zip

Please have a look at the above and try this, if still an issue exists could you please send us the sample to reproduce it? So that we could sort out the cause of the issue very soon and provide you a better solution.

Regards,
Raji



Loader.
Up arrow icon