TimeSlot Selection Bug

2 posts, 0 answers
  1. Sean Overman
    Sean Overman avatar
    31 posts
    Member since:
    Sep 2012

    Posted 10 Feb 2011 Link to this post

    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.
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 16 Feb 2011 Link to this post

    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.
Back to Top