This is a migrated thread and some comments may be shown as answers.

RadInputManager clears out textbox

3 Answers 67 Views
Input
This is a migrated thread and some comments may be shown as answers.
mk
Top achievements
Rank 1
mk asked on 12 Mar 2010, 08:44 PM
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?

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 17 Mar 2010, 01:31 PM
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.
0
mk
Top achievements
Rank 1
answered on 18 Mar 2010, 07:11 PM
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?
0
Yavor
Telerik team
answered on 23 Mar 2010, 12:53 PM
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.
Tags
Input
Asked by
mk
Top achievements
Rank 1
Answers by
Yavor
Telerik team
mk
Top achievements
Rank 1
Share this question
or