We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Numeric TextBox

Is there a way to have a numeric textbox that will actually disable the ability to enter in non numeric characters in a grid cell so you dont need to put error handling or checking in the savecellinfo code or cellvalidating code. thks, ak

1 Reply

AD Administrator Syncfusion Team December 10, 2005 05:17 PM UTC

There is a special event set up to handle this key by key validating. In is the CurrentCellValidateString event. It is raised keystroke by keystroke and the proposed value is passed as part of the event args, and you can cancel the keystroke if you do not want the string it generates. If you want to have a cell control to handle this without using an event, you can try using a "Currency" celltype with a blank CurrencySymbol to see if that serves your purpose. (But using the CurrentCellValidateString event is straight-forward.)

Loader.
Live Chat Icon For mobile
Up arrow icon