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

Scheduler Navigator (TimeZone Set)

20 Answers 270 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
jeff357
Top achievements
Rank 2
jeff357 asked on 21 Nov 2010, 03:51 PM
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 
 

20 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 21 Nov 2010, 07:39 PM
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
0
jeff357
Top achievements
Rank 2
answered on 21 Nov 2010, 09:13 PM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 21 Nov 2010, 11:32 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 21 Nov 2010, 11:39 PM
Hi Again,

See new screenshot. I've just updated my time Zone settings on my PC to match yours.
Richard
0
jeff357
Top achievements
Rank 2
answered on 22 Nov 2010, 12:28 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 12:44 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 12:54 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 01:35 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 22 Nov 2010, 01:23 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 23 Nov 2010, 01:45 PM
Hello Jeff,

How did you get on with this? If I can be of further help, just let me know.
thanks
Richard
0
jeff357
Top achievements
Rank 2
answered on 23 Nov 2010, 03:41 PM
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
0
Dobry Zranchev
Telerik team
answered on 24 Nov 2010, 03:04 PM
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.
0
jeff357
Top achievements
Rank 2
answered on 29 Nov 2010, 04:11 AM
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

0
Richard Slade
Top achievements
Rank 2
answered on 29 Nov 2010, 10:05 AM
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
0
jeff357
Top achievements
Rank 2
answered on 30 Nov 2010, 03:14 AM
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...)
0
Dobry Zranchev
Telerik team
answered on 02 Dec 2010, 10:31 AM
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.
0
Accepted
luca
Top achievements
Rank 2
answered on 02 Dec 2010, 04:15 PM
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.

0
Dobry Zranchev
Telerik team
answered on 08 Dec 2010, 02:01 PM
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.
0
Denis Cilliers
Top achievements
Rank 1
answered on 14 Nov 2012, 11:49 AM
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


0
Ivan Todorov
Telerik team
answered on 16 Nov 2012, 02:55 PM
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.
Tags
Scheduler and Reminder
Asked by
jeff357
Top achievements
Rank 2
Answers by
Richard Slade
Top achievements
Rank 2
jeff357
Top achievements
Rank 2
Dobry Zranchev
Telerik team
luca
Top achievements
Rank 2
Denis Cilliers
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or