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

Getting DateInput as null in javascript

1 Answer 115 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 15 Jul 2008, 02:23 PM
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 

 

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 15 Jul 2008, 02:52 PM
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
Tags
Calendar
Asked by
Manoj
Top achievements
Rank 1
Answers by
Missing User
Share this question
or