This is a migrated thread and some comments may be shown as answers.

Q2 Scheduleview Requires TimeZoneInfo

11 Answers 116 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 14 Jul 2011, 07:58 PM
Hi all,

It appears the TimeZoneInfo for scheduleview in Q2 can no longer be null.  As Silverlight TimeZoneInfo doesn't have a To/From serializedstring method, can you please provide an example of the recommended way to handle this to a SQL / EF backend.

Many thanks,
Mark

11 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 15 Jul 2011, 01:26 PM
A sample project illustrating the issue is available at the following link:

If you'll open the one appointment saved in the DB, you'll see after the Q2 upgrade the exception.

http://tinyurl.com/3mo28nv

Kind regards,
Mark

0
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 01:48 PM
Hi Mark,

I am downloading the sample application, I will write back again when I try it.

Best wishes,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 15 Jul 2011, 01:52 PM
Hi Valeri,

Thanks very much.  You are also welcome to provide the sample on the thread if you like.  It may help some folks with the ScheduleView implementation.  It is derived from one previously provided by George / Telerik.

Of note: it overcomes the issue with relative / absolute path that was exhibited by George's contribution (specific to m2m4ria).

Kind regards,
Mark
0
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 02:07 PM
Hello Mark,

I was able to run and upgrade the application, but it seems to work fine. What should I do to break it?

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 15 Jul 2011, 02:12 PM
If you'll open the saved appointment, you'll see it opens fine in Q1, but produces the following exception in Q2 ("AfterUpgrade" folder).

0
Accepted
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 02:28 PM
Hello Mark,

Unfortunately this problem should be considered as a bug and I don't have a workaround, except putting a default value for the TimeZone property in the entity model... For example you could add partial void OnCreated method and set the value there.

I apologize for the inconvenience, we will do our best to fix this for one the next internal builds.

Your points have been updated.

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 15 Jul 2011, 02:30 PM
Hi Valeri,

Thanks very much.  Hopefully we'll see a fix shortly.  Otherwise the Q2 release has been pretty smooth control wise from my experience.  If you'll just please confirm whether I need to submit the bug or if that has been added.

Kind regards,
Mark
0
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 02:34 PM
Hi Mark,

You don't have to submit this bug again, it has been added to our internal task list. Probably we will not be able to provide a fix for the internal build on Monday, but we will do our best to provide it for the Monday after the next.

All the best,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Mark
Top achievements
Rank 1
answered on 03 Aug 2011, 11:24 AM
Hi All,

Is there any way to track when this will be fixed?  As it isn't listed in PITS (that I can tell anyway), I am not sure if / how I can keep an eye out for the fix.

Thanks,
Mark
0
Valeri Hristov
Telerik team
answered on 04 Aug 2011, 03:07 PM
Hi Mark,

This issue is already fixed, the upcoming internal build next Monday will contain the fix.

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Scott
Top achievements
Rank 1
answered on 20 Oct 2011, 02:31 AM
Hi Valeri,

Can you provide an overview of how to handle Appointment dates and TimeZones with a RIA Service and LINQ-to-Entities backend?

We've got the ScheduleView running pretty well, but after deploying a our solution to Azure, I notice that our appointemnt dates are being written 11 hours in the future in SQL Azure (but being sent in RIA's SubmitChanges() request as local time). We haven't really addressed the TimeZone issue yet, and I'm trying to get my head around all the issues.

Basically we want to store start/end dates in UTC in the database and convert to local time in the Silverlight Client. I know there is a problm serialising the TimeZone object in Silverlight, so what are the general load/save issues of which I need to be aware?

For example, should we always set the IAppointment.TimeZone to Local when saving an Appointment? Use IAppointment.Start/End.ToLocalTime() when loading the appointments?
What effect does the IAppointment.TimeZone value really have on the RadScheduleView? How is it meant to be used?

Any guidance will be greatly appreciated.

Cheers,
Scott
Tags
ScheduleView
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Valeri Hristov
Telerik team
Scott
Top achievements
Rank 1
Share this question
or