When I am in month view, what event is triggered when I click the text being pointed to in the image below.
Thanks.
1 Answer, 1 is accepted
0
Hristo
Telerik team
answered on 13 Dec 2014, 01:40 PM
Hello Scott,
Thank you for writing.
Hitting the text as shown in your picture will switch the view to WeekView and the ActiveViewChanging and ActiveViewChanged events will fire. You can detect changes in the view by subscribing to these events. However, the view can be changed by a variety of other actions as well, for example by using the RadSchedulerNavigator.
If you would like to implement your own logic on clicking these cells, then you need to disable the transition from MonthView to WeekView and subscribe to the CellClick event. Please check the code snippet below:
if (e.CellElement.Parent is MonthViewVerticalHeader)
{
MessageBox.Show(e.CellElement.Date.ToString());
}
}
}
Hope this helps. Should you have further questions, feel free to ask.
Regards,
Hristo
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.