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

    Hi,
         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">
    </DateInput>
    </
    rad:RadDatePicker>

     I try to access the dateInput in javascript like this:

    datepicker._dateInput

    I get the _dateInput as null, I also tried the same as:
    datepicker.get_dateInput()
    but this also returns me null

    Please suggest me how can i get it.

    Thanks & Regards,
    Manoj Dwivedi 

     
  2. Plamen Peshev
    Admin
    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:

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


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

    http://www.telerik.com/help/aspnet-ajax/input_clientsidebasics.html

    All the best,
    Plamen
    the Telerik team

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