RadInputManager clears out textbox

4 posts, 0 answers
  1. mk
    mk avatar
    14 posts
    Member since:
    Sep 2009

    Posted 12 Mar 2010 Link to this post

    I am using a RadInputManager to validate the input of a textbox. If a user types in invalid characters into that textbox it shows the warning message. If they leave it that way and hit the save button when they go back to that textbox the original value has been cleared. Is there any way to not clear out the original value when they hit save?
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 17 Mar 2010 Link to this post

    Hello mk,

    Indeed, this behavior is observed. One possible option in this case would be to subscribe to the onError/onValidating/onKeyPress client side event handler of the control. This would allow you to intercept the user action, and replace the erroneous input with something more suitable.
    I hope this is a feasible approach for you.

    Best wishes,
    Yavor
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. mk
    mk avatar
    14 posts
    Member since:
    Sep 2009

    Posted 18 Mar 2010 Link to this post

    Replacing the erroneous input with something more suitable will not work for us. It is an error we require the user to fix.
    Is this something you guys will look into fixing in a future release?
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 23 Mar 2010 Link to this post

    Hi mk,

    Presently, the behavior of the control, whenever an erroneous input is detected, is one of the following:
    1. Clear out the value, leaving the input blank
    2. tries to parse the value, and replace it with a numeric/date value, closest to the input supplied by the user.

    Altering these options may be intuitive in some cases, but not implementing it as a feature of the control. This is especially valid, since the control exposes api to allow you to programatically cater for this setup. Nevertheless, we may consider extending this functionality, for example by providing a property to specify the default value on error.

    Regards,
    Yavor
    the Telerik team


    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top