Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Validation of cell
posted

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,

Parents
  • 23953
    Offline posted

    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.

    igGridUpdating_CustomValidation.zip
Reply Children