Radscheduler selected timeslot

2 posts, 0 answers
  1. Sudarshan
    Sudarshan avatar
    1 posts
    Member since:
    May 2012

    Posted 09 Apr 2013 Link to this post

    Hi all,
    I want to find the selected timeslot in radscheduler. When i select timeslot i.e. 5 Am to 10 Am it shows me start time as 12 am and end time as 12:30 that means it takes 30 min timeslot and i found the date of previous days on TimeSlotContextMenuItemClicking event. so how can i find the selected date and time slot in radscheduler. Its also works when new appointment pop up is open.
    Please help.

      protected void RadScheduler1_TimeSlotContextMenuItemClicking(object sender, TimeSlotContextMenuItemClickingEventArgs e)
     {
                    if (e.MenuItem.Value == "CommandAddAppointment")
                    {
                        string fromTime = Convert.ToString(e.TimeSlot.Start);
                        string toTime = Convert.ToString(e.TimeSlot.End);
                  }
    }

    Sudarshan.
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 11 Apr 2013 Link to this post

    Hello Sudarshan,

    You may try to use the FormCreated server-side event:
    http://www.telerik.com/help/aspnet-ajax/scheduler-formcreated.html
    (e.Appointment.Start and e.Appointment.End).

    Greetings,
    Helen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top