This example shows how to use the client-side API of Telerik DatePicker for ASP.NET MVC.

To use the client-side API you should first retrieve the datepicker client-side object. The following code snippet shows how to do this:

    <script type="text/javascript">
    function getDatePicker(){
        //"DatePicker" is the value specified by the Name() method.
        var datePicker = $("#DatePicker").data("tDatePicker");
        return datePicker;
    }
    </script>

Available client-side methods:

- You can set selected date with the value(...) method. This method accepts Date object or string.
- You can retrieve selected date with value() method. This method returns Date object or null.
- You can show pop-up calendar with the showPopup(...) method.
- You can hide pop-up calendar with the hidePopup(...) method.