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

end date and start date from javascript of recurrence Editor / Rad Scheduler

6 Answers 201 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
saad
Top achievements
Rank 1
saad asked on 29 Mar 2012, 02:15 PM
Hello Telerik Team,
   I want to get end date and start date from javascript  of recurrence Editor / Rad Scheduler Control
i read the client side documentation but didn't got anything that fits in it so will u please gave us an example
of that Control. Urgent Response Will be Appreciated.
Regards
 

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Mar 2012, 02:59 PM
Hi Saad,

You can set enddate and startdate as follows.

JS:
<script type="text/javascript">
function OnClientClick()
   {
        var RadScheduler = $find("<%= RadScheduler1.ClientID %>");
        alert(RadScheduler.get_appointments().getAppointment(0).get_start());
        alert(RadScheduler.get_appointments().getAppointment(0).get_end());
    }
</script>

For more information take a look into the following documentation.
SchedulerAppointment

Thanks,
-Shinu.
0
saad
Top achievements
Rank 1
answered on 29 Mar 2012, 04:14 PM
<telerik:RadSchedulerRecurrenceEditor Width="550px" runat="server" ID="RadSchedulerRecurrenceEditor1">
</telerik:RadSchedulerRecurrenceEditor>
</br>
<INPUT TYPE=BUTTON OnClick="checkDateValidation();" VALUE="Check">
<script type="text/javascript">
 function checkDateValidation()
    {
        var RadScheduler = $find("<%= RadSchedulerRecurrenceEditor1.ClientID %>");
        alert(RadScheduler.get_appointments().getAppointment(0).get_start());
        alert(RadScheduler.get_appointments().getAppointment(0).get_end());  
    }
</script>
0
saad
Top achievements
Rank 1
answered on 29 Mar 2012, 04:14 PM
Not Working !!
0
Shinu
Top achievements
Rank 2
answered on 30 Mar 2012, 05:12 AM
Hi Saad,

You can set enddate and startdate of RadSchedulerRecurrenceEditor as follows.

ASPX:
<telerik:RadSchedulerRecurrenceEditor ID="RadSchedulerRecurrenceEditor1" runat="server">
</telerik:RadSchedulerRecurrenceEditor>

JS:
<script type="text/javascript">
  function OnClientClick()
  {
    var RadScheduler1 = $find("<%= RadSchedulerRecurrenceEditor1.ClientID %>");
    alert(RadScheduler1.get_startDate());
    alert(RadScheduler1.get_endDate());
  }
</script>

Thanks,
-Shinu.
0
saad
Top achievements
Rank 1
answered on 30 Mar 2012, 01:41 PM
Hello Telerik Team,
i want to access the end by date too how  can i access it.
thanks 4 your reply
regard
0
Shinu
Top achievements
Rank 2
answered on 02 Apr 2012, 06:30 AM
Hi Saad,

Try the following code to achieve your scenario.

JS:
<script type="text/javascript">
function OnClientClick()
   {
        var RadScheduler1 = $find("<%= RadSchedulerRecurrenceEditor1.ClientID %>");
        alert(RadScheduler1._getRange().get_recursUntil());
    }
</script>

Thanks,
-Shinu.
Tags
Scheduler
Asked by
saad
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
saad
Top achievements
Rank 1
Share this question
or