How to set the default view in a Scheduler Navigator?

2 Answers 182 Views
Scheduler and Reminder
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 01 Jan 2022, 01:04 AM
Basically what the title says.  Right now it defaults to "Day" view, and I'd like it to default to "Week" view.

2 Answers, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Jan 2022, 05:45 AM

Hi, Troy and Timo,

Calling the SchedulerNavigatorElement.WeekViewButton.PerformClick method simulates clicking the Week button. It is a possible solution. However, I would recommend you to set directly the RadScheduler.ActiveViewType property to SchedulerViewType.Week. Please refer to the following help article for more information about the Week view:

https://docs.telerik.com/devtools/winforms/controls/scheduler/views/week-view 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 03 Jan 2022, 07:53 PM

Thanks Dess, I switched to this method.  It didn't occur to me to look for this on the scheduler instead of the navigator.
1
MrBizzl
Top achievements
Rank 2
Iron
answered on 01 Jan 2022, 09:31 AM

HI Troy

Maybe not the best sollution but it works fine.

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        RadSchedulerNavigator1.SchedulerNavigatorElement.WeekViewButton.PerformClick()
    End Sub
End Class

Best
Timo

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 01 Jan 2022, 06:57 PM

Timo,

That'll do what I need it to do, thank you!

Tags
Scheduler and Reminder
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
MrBizzl
Top achievements
Rank 2
Iron
Share this question
or