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

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

1 Answer 19 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gurdeep
Top achievements
Rank 1
Gurdeep asked on 23 Feb 2019, 01:59 PM

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

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 27 Feb 2019, 12:05 PM
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.
Tags
Scheduler
Asked by
Gurdeep
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or