When using the new feature mentioned: here (Slot Selection), I've encountered the following bug.
I've defined a context menu inside my schedule control as follows:
Then server side I dynamically add child menu items to this root item:
I attach to the TimeSlotContextMenuItemClickedEventHandler event server side, and when I get the TimeSlot object from the TimeSlotContextMenuItemClickedEventArgs it doesn't contain the full duration of the selected timeslot, instead its just the block of time like 9-9:30.
I am doing something wrong here? How do I get the full duration of the selected time slice, on the server side?
I created a support ticket for this as well, but wanted to see if anyone else has experienced this.
I've defined a context menu inside my schedule control as follows:
<
TimeSlotContextMenus
>
<
tel:RadSchedulerContextMenu
ID
=
"TimeSlotContextMenu"
runat
=
"server"
>
<
Items
>
<
tel:RadMenuItem
Text
=
"Assign Employee"
Value
=
"NoClick"
/>
</
Items
>
</
tel:RadSchedulerContextMenu
>
</
TimeSlotContextMenus
>
Then server side I dynamically add child menu items to this root item:
private
void
CreateTimeSlotMenu() {
RadMenuItem menu = TimeSlotContextMenu.Items.FindItemByText(
"Assign Employee"
);
menu.Items.Clear();
DataTable dtValidEmps = DAL.GetEmployeesForCalendar(_accountID, _locationID);
foreach
(DataRow dr
in
dtValidEmps.Rows) {
menu.Items.Add(
new
RadMenuItem() {Text = (
string
)dr[
"EmployeeName"
], Value =
string
.Format(
"AssignEmp{0}"
,dr[
"EmployeeID"
])});
}
}
I attach to the TimeSlotContextMenuItemClickedEventHandler event server side, and when I get the TimeSlot object from the TimeSlotContextMenuItemClickedEventArgs it doesn't contain the full duration of the selected timeslot, instead its just the block of time like 9-9:30.
I am doing something wrong here? How do I get the full duration of the selected time slice, on the server side?
I created a support ticket for this as well, but wanted to see if anyone else has experienced this.