RadScheduler range

2 posts, 0 answers
  1. Bruno
    Bruno avatar
    11 posts
    Member since:
    Oct 2013

    Posted 09 Dec 2013 Link to this post

    I, it is possible to get de range of selected date in telerik RadScheduler. 

     I want to get the start date and the end date selected.

    In this example: 10/12/2013 07:00 and 10/12/2013 10:00.

    Any help? Thanks
  2. Plamen
    Plamen avatar
    2816 posts

    Posted 12 Dec 2013 Link to this post

    Hi Bruno,

    Here is the code that could help you get this range of selected timeslots in RadScheduler:
    <script type="text/javascript">
               function pageLoad() {
                   var $ = $telerik.$,
                       scheduler = $find("<%=RadScheduler1.ClientID%>");
                 $(".rsContentTable td").mouseup(function myfunction() {
                     var startTime = scheduler.get_selectedSlots()[0].get_startTime();
                     var selectionLength = scheduler.get_selectedSlots().length;
                     var endTime = scheduler.get_selectedSlots()[selectionLength - 1].get_endTime();

    Hope this will be helpful.

    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 the blog feed now.
Back to Top