We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

75925 Aug 15,2008 12:49 AM UTC Aug 23,2008 09:55 AM UTC Windows Forms 1
loading
Tags: ScheduleControl
Phani Kumar Simhadri
Asked On August 15, 2008 12:49 AM UTC

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

Rajarajeswari S [Syncfusion]
Replied On 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



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;