Posted 8 March 2023, 4:01 am EST
Can a Wijmo grid column of type number have a max length set ?
So that It wont allow typing data beyond the specified length
Forums Home / Wijmo / General Discussion
Posted by: rakesh.thummanapelly on 8 March 2023, 4:01 am EST
Posted 8 March 2023, 4:01 am EST
Can a Wijmo grid column of type number have a max length set ?
So that It wont allow typing data beyond the specified length
Posted 8 March 2023, 5:12 pm EST
Hi Rakesh,
To implement this you can use a custom editor for the flexgrid column. You can use ‘InputNumber’ as a custom editor if you want to restrict the input value to a max or min value. You can also use ‘InputMask’ as an editor if you want to restrict the user input to a certain number of digits.
Please refer to the following sample for the same - https://stackblitz.com/edit/js-ydt69s?file=index.js
In the above sample, I have used, InputNumber as a custom editor in the ‘Sales’ column, and InputMask as a custom editor in the ‘Area’ column. You can use any of these controls as per your requirements.
Regards