Hello,
I have created an application using the ScheduleView control and would like to persist the appointments. If I try to use typical serialization methods, I get an exception saying that AppointmentBase is not serializable. Does anyone know what the best approach is to save appointments to a file?
Thanks,
Mark
I have created an application using the ScheduleView control and would like to persist the appointments. If I try to use typical serialization methods, I get an exception saying that AppointmentBase is not serializable. Does anyone know what the best approach is to save appointments to a file?
Thanks,
Mark
8 Answers, 1 is accepted
0
Hi Mark,
You could try serializing the appointments in iCal format:
http://demos.telerik.com/wpf/?ScheduleView/Ical
Regards,
Valeri Hristov
the Telerik team
You could try serializing the appointments in iCal format:
http://demos.telerik.com/wpf/?ScheduleView/Ical
Regards,
Valeri Hristov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Mark
Top achievements
Rank 1
answered on 17 Dec 2010, 11:43 PM
Hi Valeri,
Thanks for the reply. I meant to post my workaround earlier, but that is exactly what I ended up doing. I export the appointments to a string and persist the string. Then when I load my file I import the appointments from the string. So far it seems to be working pretty well. If there is a better approach then I am all ears!
Thanks,
Mark
Thanks for the reply. I meant to post my workaround earlier, but that is exactly what I ended up doing. I export the appointments to a string and persist the string. Then when I load my file I import the appointments from the string. So far it seems to be working pretty well. If there is a better approach then I am all ears!
Thanks,
Mark
0
Mark
Top achievements
Rank 1
answered on 17 Dec 2010, 11:57 PM
Actually, one thing that is frustrating is that not all properties get persisted in this way. For example - the categorization colours do not get persisted or restored.
I am curious as to what this control was expected to be used for when you cannot persist appointments easily. I feel like I am missing some critical piece of information that will make it all make sense! Am I?
I am curious as to what this control was expected to be used for when you cannot persist appointments easily. I feel like I am missing some critical piece of information that will make it all make sense! Am I?
0
Hello Mark,
This seems like a bug on our side and I am surprised that no one reported it for RadScheduler, as the code that persists the appointment properties is the same in both controls. We will fix this problem with the upcoming service pack this week.
Your points have been updated.
Best wishes,
Valeri Hristov
the Telerik team
This seems like a bug on our side and I am surprised that no one reported it for RadScheduler, as the code that persists the appointment properties is the same in both controls. We will fix this problem with the upcoming service pack this week.
Your points have been updated.
Best wishes,
Valeri Hristov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Frank
Top achievements
Rank 1
answered on 01 Mar 2011, 08:03 PM
We are using the 2010.3 1314 version of the RadScheduleView and the categories are exported in the iCal string but never restored when the iCal string is imported. We also tested the Q1 2011 beta and the problem still occurs. We rely on the categories in our solution so is there a plan to fix this bug in the short term?
Thanks for the feedback
Thanks for the feedback
0
Hi Francis,
It seems that the bug is still present in RadScheduleView. We will provide a fix with the internal build next Monday (it will be included in the Q1 2011 release as well).
Your points have been updated.
All the best,
Valeri Hristov
the Telerik team
It seems that the bug is still present in RadScheduleView. We will provide a fix with the internal build next Monday (it will be included in the Q1 2011 release as well).
Your points have been updated.
All the best,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Rob
Top achievements
Rank 1
answered on 20 Jun 2011, 02:55 PM
Hi is this still an issue, I am using the the Q1 2011 wpf controls(trial RadControls_for_WPF_35_2011_1_0419_Trial) and cannot serialise Appointmentbase and receive the following error:
[SerializationException: Type 'Telerik.Windows.Controls.ScheduleView.AppointmentBase' in Assembly 'Telerik.Windows.Controls.ScheduleView, Version=2011.1.419.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +7736003
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +258
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +111
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +283
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +45
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo) +178
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +7633304
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +461
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1577
[SerializationException: Type 'Telerik.Windows.Controls.ScheduleView.AppointmentBase' in Assembly 'Telerik.Windows.Controls.ScheduleView, Version=2011.1.419.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +7736003
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +258
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +111
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +283
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +45
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo) +178
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +7633304
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +461
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1577
0
Hello Rob,
Yes, AppointmentBase is not serializable, the suggested approach is to serialize the appointments in ICal format as explained earlier in this thread.
Regards,
Yana
the Telerik team
Yes, AppointmentBase is not serializable, the suggested approach is to serialize the appointments in ICal format as explained earlier in this thread.
Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items