I use editorOptions: { minValue: 2.0, maxValue: 7.0, required: true } to control the cell value between 2.0 and 7.0. How can I add 0.0 value as a valid value in addition the range 2.0 to 7.0?
Thanks,
Hi,
This is not available out of the box, but it can be implemented as a custom validation for the specific editor. The idea is to get the column editor by using igGridUpdating.editorForKey method. Then use the editor's validator to make the custom validation.
I've attached a sample which demonstrates this functionality. The "customValidator" function implements all the logic. It is a self contained function so you can just copy it to your code and use it. However I didn't test it for all the editors, to it may have bugs.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Thank you very much!