Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1284
UltraWin Grid - Cell input validation and Cursor position
posted

Hi,

  I am working on Ultra Win Grid. I have a column to enter currency values like ($100  or  $ 5,000 )

I want to validate while the user is trying to enter the value in this cell.

Should allow $ symbol only at the first position and allow numeric values after the first position.

How to get the cell Value and Cursor position and do validation while the user is entering

 currency value?

Thanks

Ashok

  • 37774
    Suggested Answer
    posted

    Ashok,

    It would be much easier to set the Style of the column to Currency, or specify a MaskInput on the column to something like "{currency:9.2}".  This way, the EditorWithMask will handle all of the validation for you and you won't have to worry about implementing this.

    -Matt