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

Timezone / Ruler VB2010 Code Behind

3 Answers 44 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 12 Dec 2010, 02:51 AM
Put this in the startup code (After the fill.database:
InitializeTimeZones()
  
  
Here is The VB coding. 
  
  
  Private Sub InitalizeTimeZones()
        ddTimeZones.SortStyle = Telerik.WinControls.Enumerations.SortStyle.Ascending
        ddTimeZones.DataSource = Time.GetSchedulerTimeZones
        ddTimeZones.DisplayMember = "List"
    End Sub
    Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        RadScheduler1.ActiveView.DefaultTimeZone = DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone)
    End Sub
    Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
        Dim view As SchedulerDayViewBase = TryCast(RadScheduler1.ActiveView, SchedulerDayViewBase)
        If view IsNot Nothing Then
            view.TimeZones.Add(DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone))
        End If
    End Sub

3 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 15 Dec 2010, 03:51 PM
Hi jeff,

Thank you for writing.

I am not sure that I understand what exactly the code represents. Please state the exact question that you have about the timezones. This will allow me to provide you with a helpful response.

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 15 Dec 2010, 09:43 PM
    This is just a VB.NET Code Snipet to help the
VB People as it was hard to convert over. Not
a question , it was an answer.
                                     Jeff Link
0
Dobry Zranchev
Telerik team
answered on 20 Dec 2010, 05:36 PM
Hello jeff,

Thank you for sharing this code snippet with the community.

Greetings,
Dobry Zranchev
the Telerik team
Check out the Q1 2011 Roadmap for Telerik Controls for Windows Forms.
Tags
Scheduler and Reminder
Asked by
jeff357
Top achievements
Rank 2
Answers by
Dobry Zranchev
Telerik team
jeff357
Top achievements
Rank 2
Share this question
or