Q2 Scheduleview Requires TimeZoneInfo

12 posts, 1 answers
  1. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 14 Jul 2011 Link to this post

    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
  2. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 15 Jul 2011 Link to this post

    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

  3. DevCraft banner
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    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!

  5. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 15 Jul 2011 Link to this post

    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
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    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!

  7. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 15 Jul 2011 Link to this post

    If you'll open the saved appointment, you'll see it opens fine in Q1, but produces the following exception in Q2 ("AfterUpgrade" folder).

  8. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    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!

  9. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 15 Jul 2011 Link to this post

    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
  10. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    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!

  11. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 03 Aug 2011 Link to this post

    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
  12. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 04 Aug 2011 Link to this post

    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!

  13. Scott
    Scott avatar
    42 posts
    Member since:
    Feb 2009

    Posted 19 Oct 2011 Link to this post

    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
Back to Top
DevCraft banner