Hi,
I am kinda stuck with multiple timeslot selection, like that of outlook. Although it highlights all the selected timeslot but then I am not able to find out the date selected.
Since I am using my own UserControl I disabled Insert/Edit/Delete of Radscheduler, so FormCreated wont' be fired.
I am using RadAjaxManager for server side event. In my Client event
OnClientTimeSlotContextMenuItemClicked="OnClientTimeSlotContextMenuItemClicked"
I cannot find how to get start and end date.
Thank you
I am kinda stuck with multiple timeslot selection, like that of outlook. Although it highlights all the selected timeslot but then I am not able to find out the date selected.
Since I am using my own UserControl I disabled Insert/Edit/Delete of Radscheduler, so FormCreated wont' be fired.
I am using RadAjaxManager for server side event. In my Client event
OnClientTimeSlotContextMenuItemClicked="OnClientTimeSlotContextMenuItemClicked"
function OnClientTimeSlotContextMenuItemClicked(sender, eventArgs) {<br><br> var menuItem = eventArgs.get_item();<br> var timeSlot = eventArgs.get_slot();<br> if (menuItem != null) {<br> var selectedMenuItem = menuItem._properties._data.value;<br> if (selectedMenuItem == "createTimesheet") {<br><br><br> } else if (selectedMenuItem == "createTodo") {<br><br> } else if (selectedMenuItem == "AllDay") {<br> var radWindow = $find("<%=rWindowAppointmentInsert.ClientID %>");<br> radWindow.show();<br> var startDate = new Date(timeSlot._startTime);<br> var duration = timeSlot.get_durationInMinutes();<br> var arg = "Type=AllDay,Start=" + timeSlot._startTime.toDateString() + " " + startDate.getHours() + ":" + startDate.getMinutes();<br> arg += ",Duration=" + duration;<br> $find("<%=rAjaxMgrScheduler.ClientID %>").ajaxRequest(arg);<br> return false;<br> } else if (selectedMenuItem == "Insert") {<br> var radWindow = $find("<%=rWindowAppointmentInsert.ClientID %>");<br> radWindow.show();<br> var startDate = new Date(timeSlot._startTime);<br> var duration = timeSlot.get_durationInMinutes();<br> var arg = "Type=Insert,Start=" + timeSlot._startTime.toDateString() + " " + startDate.getHours() + ":" + startDate.getMinutes();<br> arg += ",Duration=" + duration;<br> $find("<%=rAjaxMgrScheduler.ClientID %>").ajaxRequest(arg);<br> return false;<br> } else { <br> <br> }<br> }<br> return false;<br> }Thank you