Clear Button in TimePicker's TimeView Popup

2 posts, 0 answers
  1. Michael Malone
    Michael Malone avatar
    68 posts
    Member since:
    May 2010

    Posted 09 Jul 2015 Link to this post

    I need a way to clear values from a TimePicker. Users are not able to manually interact with the textbox, they can only use the pop up values from the TimeView to select preset values in 15 minute increments. In the link below the first example has a "Clear button" at the bottom of the TimeView. Unfortunately I don't see a code example. How do I get a clear button like the example? 


  2. Eyup
    Eyup avatar
    2941 posts

    Posted 14 Jul 2015 Link to this post

    Hi Michael,

    You can achieve this requirement using a FooterTemplate:

    For your convenience, I have prepared a sample for your case:
    <telerik:RadTimePicker ID="RadTimePicker1" runat="server">
        <TimeView runat="server">
                <asp:Button ID="Button1" runat="server" Text="Clear" OnClientClick="clearClick(); return false;" />
    function clearClick() {
        var picker = $find('<%= RadTimePicker1.ClientID %>');

    Hope this helps. Please give it a try and let me know about the result.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Telerik UI for ASP.NET Core is out
Back to Top