Hi,
To achieve the desired behavior you can place a button next to the RadMonthYearPicker and use its client-side click event to call the clear() method exposed by the Client-side API of the RadMonthYearPicker, see RadMonthYearPicker Object - Methods.
Here is a sample declaration using a RadButton:
<script>
function clearValue(sender, args) {
$find("<%=RadMonthYearPicker1.ClientID%>").clear();
}
</script>
<telerik:RadMonthYearPicker RenderMode="Lightweight" ID="RadMonthYearPicker1" runat="server" Width="238px">
</telerik:RadMonthYearPicker>
<telerik:RadButton RenderMode="Lightweight" ID="RadButton1" runat="server" Text="Clear date" OnClientClicked="clearValue" AutoPostBack="false">
<Icon PrimaryIconCssClass="rbRemove"></Icon>
</telerik:RadButton>
Kind regards,
Doncho
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.