RadDateInput different browsers,different behavior

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

    Posted 03 Aug 2012 Link to this post

    in IE, Safari and Chrome, the delete and backspace keys can be used to clear out data, especially bad data
    in Firefox and Opera those keys are disabled
    <telerik:RadDateInput id="del1" DateFormat="d" Width="92px" Height="18px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" 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");
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 09 Aug 2012 Link to this post

    Hi Marianne,

    Please note that the mentioned functionalities are inbuilt and you could use Delete or BackSpace buttons to delete the needed content without adding the client code you are using. Could you please elaborate on what exactly you need to achieve with the client script you are implementing so we could provide proper solution for all browsers.

    Maria Ilieva
    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.
  3. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 09 Aug 2012 Link to this post

    I go into a web page with a few RadDateInput controls
    I enter a date into one of them
    I then try to erase the box with either the delete key or the backspace
    IE, Safari and Chrome let me - in Firefox and Opera the textbox is locked
  4. Edward
    Edward avatar
    13 posts
    Member since:
    Sep 2011

    Posted 13 Aug 2012 Link to this post

    WIth "bad data", do you mean invalid date? This can be caused by a bug that is already fixed according to the release notes:
    Fixed: Invalid value of RadDateInput is not properly cleared on the client when EnableSingleInputRendering="true"

    What version do you use?
Back to Top