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!
Hi cgao,
If you need any further assistance with the matter, please feel free to contact us.
I do have another issue. If I use editMode: "cell" and "iggridupdatingeditcellstarted", the validating message is correct, but the invalid value entered anyway if you click another cell. See the attached modified sample.
editMode:
"cell"
This issue has been logged in our internal tracking system with a Development ID of 128697.
I have created a support ticket on your behalf with number CAS-105156-C5W2B2 linked. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Let me know if you have any questions.