jQuery to Set FocusedDate

2 posts, 0 answers
  1. Greg
    Greg avatar
    6 posts
    Member since:
    Dec 2007

    Posted 23 Mar 2010 Link to this post

    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

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 24 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top