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

RadScheduler range

1 Answer 91 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 09 Dec 2013, 06:37 PM
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

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 12 Dec 2013, 11:31 AM
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();
                 alert(startTime+"-"+endTime);
                    
             });
             }
     </script>

Hope this will be helpful.

Regards,
Plamen
Telerik
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.
Tags
Scheduler
Asked by
Bruno
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or