In NumberBox, you can use LDML-pattern masks for formatting values. # and 0 special characters apply the following limitations to NumberBox behavior:
- If 0is in the mask, users cannot erase this character in NumberBox.
- If one or more #characters are in the mask (without0characters), users cannot enter numbers starting with0(for example, 0.123).
This example demonstrates how to overcome these limitations. You can test this implementation in standalone and DataGrid FilterRow editors:
Define the onKeyDown event handler and switch between zero-based and non-zero formats of the same structure to get the desired result.
- jQuery
- Angular
- Vue
- React
- NetCore
(you will be redirected to DevExpress.com to submit your response)
