how do I clear RADDateInput on the client?

4 posts, 0 answers
  1. Elliott
    Elliott avatar
    392 posts
    Member since:
    May 2010

    Posted 04 May 2012 Link to this post

    I've been trying to clear a bad date in Javascript
    <telerik:RadDateInput id="del1" DateFormat="d" Width="82px" Height="18px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" AllowEmpty="true" runat="server" >
        <ClientEvents OnKeyPress="del_keypress" />
        <ClientEvents OnError="date_input_error" />  
    the scripts
    function del_keypress(sender, eventArgs) {
        var whichCode = eventArgs.get_keyCode();
        if ((whichCode != 13) && ((whichCode < 47) || (whichCode > 57)))
    function date_input_error(sender, args) {
        alert("Invalid Delivery Date");
       // next line does nothing
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 May 2012 Link to this post

    Hello Marianne,

    I also experienced the same behavior in the latest version(2012, 1, 411, 35). It was figured out as a bug according to this forum thread.

  3. Elliott
    Elliott avatar
    392 posts
    Member since:
    May 2010

    Posted 07 May 2012 Link to this post

    thanks Shinu
    unfortunately, Remus beat me to it, so he gets the points

    I wonder if the locking that happens on Firefox is part of the problem - or separate
  4. Vasil
    Vasil avatar
    1642 posts

    Posted 08 May 2012 Link to this post

    Hi Shinu,

    The two issues are way different, the forum you linked is about problem in server side of the control, that happens after postback with invalid value. I think it is already fixed and it should work correctly in the current official version.

    The actual issue that Marianne experience is caused by a JavaScript bug and it happens only in single input rendering mode. It will be resolved in the next release.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top