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

jQuery to Set FocusedDate

1 Answer 85 Views
Input
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 2
Greg asked on 23 Mar 2010, 07:26 PM

Hey everyone,

I'm wondering if anybody has a sample of some jQuery that would set the FocusedDate property for a RadDateInput based on the selection of a date in another RadDateInput.  Currently, I have this working with a postback, but am trying to learn and use jQuery more and more.

The below RadDatePickers are what I would want to do this with.  Currently (with the postback) I am setting the MinDate and the FocusedDate of RadDatePicker2 to the value of RadDatePicker1's selected date when the selection changes. 


<
telerik:RadDatePicker ID="RadDatePicker1" runat="server"   
                       Calendar-FirstDayOfWeek="Monday" > 
</telerik:RadDatePicker> 
                                              
<telerik:RadDatePicker ID="RadDatePicker2" runat="server"   
                       Calendar-FirstDayOfWeek="Monday" > 
</telerik:RadDatePicker> 

Thanks everyone,
Greg

1 Answer, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 24 Mar 2010, 05:02 PM
You should refer to client-side documentation for the RadDatePicker control and handle the ClientEvents-OnDateSelected event of the first RadDatePicker. I've included the link to the client-side documentation.


I hope that helps.
Tags
Input
Asked by
Greg
Top achievements
Rank 2
Answers by
robertw102
Top achievements
Rank 1
Share this question
or