<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Vista">
    </telerik:RadSkinManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <script type="text/javascript">
            function clearText() {
                var dateTimePicker = $find("<%= RadDateTimePicker1.ClientID %>");
                dateTimePicker.clear();
            }
        </script>

    </telerik:RadCodeBlock>
    <div>
        <asp:Panel ID="Panel1" runat="server" Width="638px">
            <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">
            </telerik:RadDateTimePicker>
            <asp:Button ID="Button1" runat="server" Text="Server clear" OnClick="Button1_Click" />
            <button type="button" onclick="javascript: clearText(); return false;">
                JS Clear</button>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
