I'm using the WeekViewDefinition and I would like to determine when the user click using his mouse right button if he clicked on an appointment, an empty slot or in the header of a columns where the control display the date, is so, I need to know on whivh volumn he clicked.
2 Answers, 1 is accepted
answered on 13 Feb 2014, 12:52 PM
We can get clicked item by subscribing to the MouseRightButtonUpEvent of the ScheduleView. Then in the handler you need to check whether the clicked element has parent of type AppointmentItem or GroupHeader if not you could check the ScheduleView MouseOverSlot property for the slot. Please try the following code snippet below (the ScheduleView is with x:Name="ScheduleView"):
this.ScheduleView.AddHandler(UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(MouseRightButtonUpEventHandler), true);
Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).