How to reset telerik:RadTimePicker to NULL or empty after clicking a button on a .ascx user control?
Things that I tried, but not working:
function clearTime(sender, args) {
$find("<%= Time.ClientID %>").clear();
}
</script>
<asp:Button ID="btnSave" runat="server" Text="Save" OnClientClick="clearTime" />
I get this error message:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Things that I tried, but not working:
- Time.Clear(); in code
- JavaScript - (It works on .aspx, but not .ascx)
function clearTime(sender, args) {
$find("<%= Time.ClientID %>").clear();
}
</script>
<asp:Button ID="btnSave" runat="server" Text="Save" OnClientClick="clearTime" />
I get this error message: