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

Radspineditor inconsistencies? Validation and beep feedback

1 Answer 85 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
J D
Top achievements
Rank 1
J D asked on 15 Sep 2010, 03:33 PM
Hi-

I'm using the Radspineditor for numeric entry.  It has a lot of conveniences that I'd like to keep, rather than switching to an entirely different control.  One problem that we're running into though is an inconsistency in the way validation is getting handled:

When a character is appended to the text in the editor (let's say it already contains "0.00000"), most non-numeric characters will automatically be rejected- This sounds a windows "beep".

Some symbols, like an open-parenthesis or an underscore, don't cause the beep, but are still rejected.  I've noticed that these symbols will also cause the "Validating" event for the RSE to fire off, while the non-numeric characters mentioned earlier will not.  Even if I do nothing in my "Validating" event code, the offending character is rejected.

My task is to try to make the character-by-character validation behavior consistent, but I haven't found a way to do that with the events that are available.  I need to always know during the validation event when a character will be rejected.  Currently, I don't have any visibility of that: The beep-rejected characters don't fire the Validating event, and when Validating fires for the silently-rejected characters, I can't see the true text in the control.

Any suggestions?  Is there something I'm missing?

thanks!

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Sep 2010, 05:11 PM
Hello J D,

Thanks for writing.
 
The purpose of RadSpinEditor is to restrict user input in range of two numeric values. However, this control does not provide information for which character does not pass validation and is rejected, which implies that the RadSpinEditor is not appropriate for your purposes.  I can suggest trying to implement this functionality with a regular text box - if you succeed, it can be applied to the hosted text box into RadSpinEditor.

Another suggestion is to try the MaskedEdit control, which may fit your needs.

Do not hesitate to contact us if you have other questions.

All the best,
Peter
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
SpinEditor
Asked by
J D
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or