MonthView - when click on a day take to a new page

2 posts, 0 answers
  1. Gurdeep
    Gurdeep avatar
    1 posts
    Member since:
    Feb 2019

    Posted 23 Feb Link to this post

    Using the below for a sheduler:

     

    <telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" DayStartTime="08:00:00" AdvancedForm-Enabled="false" Skin="Glow"
                DayEndTime="18:00:00"  DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
                DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"  SelectedView="MonthView" DayView-UserSelectable="false" MonthView-UserSelectable="true" TimelineView-UserSelectable="false" WeekView-UserSelectable="false"
                DataReminderField="Reminder" Width="800"  > 
            </telerik:RadScheduler>

    What i want to do is, when i click on a day i am taken to a new aspx page. There doesnt seem to be an onclick event for the days. I have tried RadScheduler1_TimeSlotContextMenuItemClicked and RadScheduler1_TimeSlotContextMenuItemClicking but they dont work

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    552 posts

    Posted 27 Feb Link to this post

    Hello Gurdeep,

    You can use the OnNavigationCommand event as demonstrated below: 

    protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)
    {
        if (e.Command == SchedulerNavigationCommand.SwitchToSelectedDay)
        {
            var clickedDate = e.SelectedDate;
            // redirect to another page
        }
    }

    Regards,
    Peter Milchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top