This is a migrated thread and some comments may be shown as answers.

TimeSlot Selection Bug

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sean Overman
Top achievements
Rank 1
Sean Overman asked on 10 Feb 2011, 07:23 PM
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:

<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.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 16 Feb 2011, 10:09 AM
Hello Sean,

You are correct, there is no way to get the length of the selected area on this event. And this is because it's not implemented, yet.

The is logged as a future development task and hopefully soon it will be scheduled for implementation.
Thank you for reporting this!


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Sean Overman
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or