Completed
Last Updated: 08 Dec 2020 10:13 by ADMIN
Imported User
Created on: 28 Feb 2017 18:58
Category: Calendar
Type: Feature Request
0
Add a clear button on the radMonthYearPicker, to allow the control to be cleared without having to backspace over the value.

		
1 comment
ADMIN
Doncho
Posted on: 08 Dec 2020 10:12

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/.