access input box

2 posts, 0 answers
  1. beeta one
    beeta one avatar
    63 posts
    Member since:
    Aug 2012

    Posted 28 Nov 2012 Link to this post

    How can i access the input box of the raddatepicker in the client side? 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Nov 2012 Link to this post

    Hi,

    Try the following code snippet to access the DateInput in RadDatePicker.

    JS:
    <script type="text/javascript">
        function OnClientClick() {
            var datepicker = $find("<%= RadDatePicker1.ClientID %>");
            var dateinput = datepicker.get_dateInput();
            alert(datepicker.get_dateInput().get_value());
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top