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

Shows extra calendar entries in fullweek and month views from tomorrow

Thread ID:

Created:

Updated:

Platform:

Replies:

94068 Apr 20,2010 05:18 PM May 6,2010 01:34 AM Windows Forms 3
loading
Tags: ScheduleControl
Marton Sindely
Asked On April 20, 2010 05:18 PM

Hello!

We utilize your schedulecontrol in our application but recently we've encountered a strange problem which we do not had previously. The problem occured after changing the version of Syncfusion from 7.1.0.21 to 8.1.0.30.

For our schedule we use fixed time slots for every workday. (First: 10:00-12:00, Second: 13:00-15:00, Third: 15:00-17:00, Fourth: 17:00-18:00 (originally 18:10, but since the time unit is 30 minutes we round it to 18:00)

As you can see in the day and workweek view pictures they're displayed correctly. But if you see the full week and the month view than there is an extra time slot added to each day. (Label: "Nincs ütemezett feladat:17:00")

I did some investigation and it seems that in full week and month view it shows the next day's first activity in this extra slot.
(So for example at 2010.03.30 it shows the activity at 2010.03.31 10:00-12:00 and displays it as "Nincs ütemezett feladat:17:00"
You can see the red bars in the appropriate views)

This kind of error was not in the previous version of Syncfusion. Can you check it and tell me how to avoid this?

Thanks for the help in advance!




Views_9c1640b6.zip

Rajadurai C [Syncfusion]
Replied On April 21, 2010 06:04 AM

Hi Marton,

Thanks for your interest in Syncfusion Products.

I have created a simple sample with some appointments in working days in a week. It has been attached in the following link:
http://help.syncfusion.com/samples/Grid.Windows/8.1.0.30/F94068.zip

In this sample, i couldn't see such inconsistencies in reported views. Could you please reproduce the issue in this sample and provide us? It would be fine for us to see the issue and sort out the cause for it.

Regards,
Rajadurai

Marton Sindely
Replied On April 29, 2010 07:22 PM

Hello!

As you've requested I've altered your simple sample to show exception. I'm adding it as an attachment for this forum post.

The root cause of this problem is putting a line break character ("\n") in the subject field of ScheduleAppointment object.

I've mainly modified the LoadBinary function like the following:


AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(Syncfusion.ScheduleWindowsAssembly.AssemblyResolver);
BinaryFormatter b = new BinaryFormatter();
b.AssemblyFormat = FormatterAssemblyStyle.Simple;
object obj = b.Deserialize(s);
t.MasterList = obj as SimpleScheduleAppointmentList;

foreach (SimpleScheduleAppointment item in t.MasterList) {
item.Subject = "Test line break: \n" + item.Subject;
}


It you comment out inside of the foreach then everything works nice. But if you leave it, you'll see the exception given in full week format.

I hope it helps.



F94068_709d1a9a.ZIP

Jisha Joy [Syncfusion]
Replied On May 6, 2010 01:34 AM

Hi Marton,

You could solve the issue by explitly setting the MonthCalendarStartDayOfWeek and WeekCalendarStartDayOfWeek properties.

this.scheduleControl.Appearance.MonthCalendarStartDayOfWeek = DayOfWeek.Sunday;
this.scheduleControl.Appearance.WeekCalendarStartDayOfWeek = DayOfWeek.Sunday;

Please try this and let me know if this helps.

Regards,
Jisha

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

;