Seems like this should be so easy...
I'm defining a <TimeSlotContextMenus> tag within the body of my RadScheduler. Within one of the functions callable from that menu, I need to be able to access the targetSlot at which the context menu actually appeared. I tried adding a custom OnClientTimeSlotContextMenu to my page, but this function never seems to get called at all (although the context menu appears fine). What's up?
I'm defining a <TimeSlotContextMenus> tag within the body of my RadScheduler. Within one of the functions callable from that menu, I need to be able to access the targetSlot at which the context menu actually appeared. I tried adding a custom OnClientTimeSlotContextMenu to my page, but this function never seems to get called at all (although the context menu appears fine). What's up?
<telerik:RadScheduler ID="RadSchedulerCalendarEvents" runat="server" Width="100%" Height="500" BorderStyle="None" BorderWidth="0" HoursPanelTimeFormat="h:mm tt" ShowFullTime="true" TimeSlotContextMenuSettings-EnableDefault="true" StartInsertingInAdvancedForm="true" DisplayRecurrenceActionDialogOnMove="true" EnableDatePicker="False" EnableDescriptionField="True" DataSourceID="SqlDataSourceEvents" DataKeyField="evtID" DataStartField="evtStartTime" DataEndField="evtEndTime" DataSubjectField="evtName" DataDescriptionField="evtDescription" DataReminderField="evtReminder" DataRecurrenceField="evtRecurrenceRule" DataRecurrenceParentKeyField="evtRecurrenceParentID" OnAppointmentDelete="RadSchedulerCalendarEvents_AppointmentDelete" OnAppointmentUpdate="RadSchedulerCalendarEvents_AppointmentUpdate" OnAppointmentInsert="RadSchedulerCalendarEvents_AppointmentInsert" OnClientAppointmentInserting="RadSchedulerCalendarEvents_OnClientAppointmentInserting" OnClientAppointmentEditing="RadSchedulerCalendarEvents_OnClientAppointmentEditing" OnClientAppointmentMoveEnd="RadSchedulerCalendarEvents_OnClientAppointmentMoveEnd" OnClientAppointmentResizeEnd="RadSchedulerCalendarEvents_OnClientAppointmentResizeEnd" > <AdvancedForm Modal="true" /> <TimeSlotContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu"> <Items> <telerik:RadMenuItem Text="New Event" ImageUrl="/Images/Icons16x16/calendar.png" Postback="false" NavigateUrl="javascript: SwitchToCalendarEventInsertForm(null, null);" /> <%--<telerik:RadMenuItem Text="New Recurring Event" ImageUrl="/Images/Icons16x16/recurring-event.png" NavigateUrl="javascript: alert('upmp');" />--%> <%--<telerik:RadMenuItem IsSeparator="true" />--%> <%--<telerik:RadMenuItem Text="Group by Calendar" Value="EnableGrouping" />--%> <telerik:RadMenuItem IsSeparator="true" /> <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" /> </Items> </telerik:RadSchedulerContextMenu> </TimeSlotContextMenus> <AppointmentContextMenuSettings EnableDefault="true" /> <Localization ContextMenuAddAppointment="New Event" ContextMenuAddRecurringAppointment="New Recurring Event" ContextMenuEdit="Edit Event" /></telerik:RadScheduler>