New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Show the time slot context menu on left-click
HOW TO
Show the context menu associated with a specific timeslot when you left-click it.
DESCRIPTION
This functionality is easily achieved with the client API of RadScheduler.
SOLUTION
Get the desired timeslot context menu from the OnClientTimeSlotClick event and show the menu as explained in Hide and Show the Menu on the Client.
ASP.NET
<script type="text/javascript">
function OnClientTimeSlotClick(sender, args) {
sender.get_timeSlotContextMenus()[0].show(args.get_domEvent());
}
</script>
<telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientTimeSlotClick="OnClientTimeSlotClick">
<TimeSlotContextMenuSettings EnableDefault="true" />
</telerik:RadScheduler>