Scheduler Navigator (TimeZone Set)

21 posts, 1 answers
  1. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 21 Nov 2010 Link to this post

    Hello,
       I have a small problem with the Q3 2010 Release of
    Scheduler Navigator.

            How can I set the timezone to the timezone
     of the computer user's clock. (it looks really bad for
    the user to have to set the time every time the app is
     loaded.)  I looked and looked and can't find it. Need
     help bad!   (VB.NET Visual Studio) 2008 / 2010
                                                       Thanks in advance!    
                                                                       Jeff Link 
     
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hello,

    The navigator will set itself automatically. Try it by changing the timezone on your PC. the label in the Scheduler will still read "local" but the drop down in the Navigator will change to the time zone that has been set on the PC.

    Hope that helps, but let me know if you have any other questions.

    Regards,
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 21 Nov 2010 Link to this post

    look at these jpg's
    i'm in the midwest usa CST
    and it's 2:11 pm, somthing
     is wrong in denmark. I even
    updated to v1119 from 1109.
    i'm not in svensk or wherever
    im in the USA.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hello Jeff,

    What do your system time zone settings read? (As per my screenshot attached).
    When I change the settings on my PC, the settings change in the Navigator.
    Look forward to hearing back from you.

    Richard
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hi Again,

    See new screenshot. I've just updated my time Zone settings on my PC to match yours.
    Richard
  7. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 21 Nov 2010 Link to this post

    hi thanks for your time but there is a bug in
    the control (unless I am setting something
    wrong) doubt...  Please Telerik guts look
    into this matter for me. I have removed
    the Navigator, Scheduler and the Calendar.
    Then replaced the .dll's with version 1119
    (from 1109) This is a very important project
    and I need help!
                                                 Thank You!
                                                     Dr. Jeff Link
  8. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hello,

    Can you replicate this in a fresh project? And has this been tried on other PCs? If you can post a sample that you can replicate this in, I'll take a look at it for you, but at the moment, it all looks like it works as it should do.

    regards,
    Richard
  9. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hello again,

    Oddly, in a new project I have managed to replicate the issue. I'll take a look into a why this might be happening.

    Richard
  10. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Nov 2010 Link to this post

    Hello,

    Ok, where are you setting
    Me.RadSchedulerNavigator1.AssociatedScheduler = Me.RadScheduler1

    I've found that:
    1: If it is set in the designer, then it is correct from the start
    2: If it is set in the form load, then it is incorrect, until you use the navigator back / forward keys

    Please could you try a fresh project with just a scheduler and a navigator, and set the navigator's associated scheduler in the designer and let me know if that works for you?

    Thanks
    Richard
  11. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 22 Nov 2010 Link to this post

    Hello,

    Here is an update for you.
    Follow these steps and it will work fine..
    1: New form
    2: Add RadSchedulerNavigator
    3: Dock to top
    4: Add RadScheduler
    5: Dock to Fill
    6: Use Smart Tag on RadSchedulerNavigator to set the AssociatedScheduler
    7: Run

    If you then do this..
    8: Use the Smart tag to dis-associate the RadSchedulerNavigator from the RadScheduler and re-associate, then the UTC shows incorrectly.

    Please can you confirm that the first 7 steps in a new project work for you.
    Thanks
    Richard
  12. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Nov 2010 Link to this post

    Hello Jeff,

    How did you get on with this? If I can be of further help, just let me know.
    thanks
    Richard
  13. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 23 Nov 2010 Link to this post

    Hello,
     The solution works with a Blank project but
     NOT with my program.  I will have to rebuild
     from scratch, so it is a bug in the telerik
     program.  Thank you for all your help richard
    and at least now they know what to look for...
                                                     Regards
                                                        Jeff L
  14. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 24 Nov 2010 Link to this post

    Hi,

    Jeff, I am not able to reproduce your issue. Please verify that the RadScheduler is associated with the RadSchedulerNavigator. If the necessary association is created and you still experienced any difficulties, please open a new support ticket and send us your project. This will allow us to investigate your case and provide you with an accurate response.

    Richard is correct that the RadSchedulerNavigator does not show the current time zone of a computer, but the time zone that is applied to the ActiveView of RadScheduler. If you want to synchronize the navigator with the time zone of the computer, you should do it in your application by setting the DefaultTimeZone property of RadScheduler when the time zone is changed.

    Regards,
    Dobry Zranchev
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
  15. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 28 Nov 2010 Link to this post

    Guys & Gals,

             I tested the timezone dropdown and I have
    discovered that the timezone setting on the host
     computer does not change the dropdown
     timezone in my app.
    Yes I did add this code into the mix.

    Me.radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.Value = newSchedulerTimeZone(TimeZone.CurrentTimeZone)
                                                         Help!
                                                               Jeff L

  16. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 29 Nov 2010 Link to this post

    Hi Jeff, 

    Hope you're well today. Where are you adding the code to associate the scheduler to the navigator? If this has not been done via the designer or the smart tag, I advise removing the navigator and scheduler, re-adding them, and setting the association via the smart tag. As you saw from my above attempts, I was only able to replicate your issue under specific circumstances. 

    I hope this helps
    Richard
  17. jeff357
    jeff357 avatar
    27 posts
    Member since:
    Apr 2008

    Posted 29 Nov 2010 Link to this post

    Hi,
      I changed back to the q2 914 build winforms and
     the scheduler time is correct so there is some bad
     code in the q3 1109 release...
                                                 Sincerely,
                                                     Dr. Jeffrey Link
    (I don't have time to play games and yes I tried all your solutions...)
  18. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 02 Dec 2010 Link to this post

    Hi Jef,

    Thank you for writing back.

    In order to achieve the desired requirement, you should actually use the SelectedValue instead of Value: 
    Me.radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.SelectedValue = new SchedulerTimeZone(TimeZone.CurrentTimeZone)

    I am not sure that I understand your last post as the TimeZones support was introduced in Q3 2010 and it was not available in our previous versions.

    Regards,
    Dobry Zranchev
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
  19. Answer
    luca
    luca avatar
    9 posts
    Member since:
    Feb 2008

    Posted 02 Dec 2010 Link to this post

    Good morning Dobry

    i have the same problem of Jeff

    As Jeff program also in our Calendar Application  we have the problem of Time Zones.

    I think that he has reason: with older version of Wincontrols times on scheduler was right, with this new feature with some pc's happen that take a wrong time zone also if Windows is set on correct time zone. So i don't understand why we have to re-associate the scheduler to navigator.

    It was good to introduce a property like: EnableTimeZones = true / false so if i wanted i will enable the funcionality and show combo, else no.

    on the attachment you can see our  Vista PC example


    however i solved with your code:
    Me.radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.SelectedValue = new SchedulerTimeZone(TimeZone.CurrentTimeZone)

    But i have to put the code after the data-binding association.
    If it can help, i can tell you that during new and load, the radscheduler and navigator take correct time zone. 
    When i fill the radscheduler with appointments from DB the combo timezones changes to wrong time.
    but i'm sure that nobody write code to change time zones because before there wasn't this functionality.

    I hope this can help Jeff and you to solve the problem.

  20. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 08 Dec 2010 Link to this post

    Hello guys,

    Thank you all for the cooperation.
    Jeff, I updated your Telerik points for the report.

    The issue will be addressed in the upcoming service pack.

    In case you have further questions, feel free to contact us.

    Best wishes,
    Dobry Zranchev
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
  21. Denis Cilliers
    Denis Cilliers avatar
    62 posts
    Member since:
    Jan 2004

    Posted 14 Nov 2012 Link to this post

    There seems to be a bit more to this bug.

    I have a scheduler that after I add an appointment the timezone swaps.

    It loads as one zone and after the update it changes zones 

    • If you add an appointment from Code from a button on the menu it works fine
    • If you add an appointment from another form it works fine
    • if you add an appointment from a docked form , when you close the docked form and return to the schedule the time zone swaps

    I needed to add the following code to the Scheduler Dock Window to get the Zimezone to sync to the right zone

    Private Sub mnuSyncZone_Click(sender As System.Object, e As System.EventArgs) Handles mnuSyncZone.Click
     
           Me.radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.SelectedValue = New SchedulerTimeZone(TimeZone.CurrentTimeZone)
     End Sub

    What event would you suggest to keep the Scheduler in Sync?
    I had in mind doing this on the Enter Event, but that seems to fire quite a lot 

    Private Sub DocumentWindow1_Enter(sender As System.Object, e As System.EventArgs) Handles DocumentWindow1.Enter
           Me.radSchedulerNavigator1.SchedulerNavigatorElement.TimeZonesDropDown.SelectedValue = New SchedulerTimeZone(TimeZone.CurrentTimeZone)
    End Sub


  22. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 16 Nov 2012 Link to this post

    Hi Denis,

    Similar issue related to RadSchedulerNavigator in RadDock has been reported recently. Here you can find the PITS item: http://www.telerik.com/support/pits.aspx#/public/winforms/13365. You can find the workaround in the description. We will do our best to address this issue in the next official release.

    Hope this helps. Please let me know if you have any further questions.

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Back to Top
UI for WinForms is Visual Studio 2017 Ready