Radspineditor inconsistencies? Validation and beep feedback

2 posts, 0 answers
  1. J D
    J D avatar
    1 posts
    Member since:
    Nov 2009

    Posted 15 Sep 2010 Link to this post


    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?

  2. Peter
    Peter avatar
    1148 posts

    Posted 20 Sep 2010 Link to this post

    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,
    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