Getting DateInput as null in javascript

2 posts, 0 answers
  1. Manoj
    Manoj avatar
    9 posts
    Member since:
    Feb 2008

    Posted 15 Jul 2008 Link to this post

         I am using Rad Prometheus 2008, DatePicker control.
         The HTML is like this:


    rad:RadDatePicker ID="datePikFmCrSingle" runat="server" EnableTyping="False" Skin="Default2006" Calendar-EnableMonthYearFastNavigation="false">
    <DateInput ReadOnly="True" Skin="Outlook" CssClass="input" id="dateInput1" runat="server">

     I try to access the dateInput in javascript like this:


    I get the _dateInput as null, I also tried the same as:
    but this also returns me null

    Please suggest me how can i get it.

    Thanks & Regards,
    Manoj Dwivedi 

  2. Plamen Peshev
    Plamen Peshev avatar
    885 posts

    Posted 15 Jul 2008 Link to this post

    Hi Manoj,

    The following code example demonstrates how to access the dateinput:

                <script type="text/javascript"
                function pageLoad(sender, args) 
                    var picker = $find("<%= datePikFmCrSingle.ClientID %>"); 
                    ID="datePikFmCrSingle" runat="server" EnableTyping="False"  Calendar-EnableMonthYearFastNavigation="false"
                    <DateInput ReadOnly="True" CssClass="input" id="dateInput1" runat="server"

    More about the client side API of the control you can learn from the Client-side API reference section in the RadInput documentation:

    All the best,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top