Author Topic: Empty Cells and Validation (licensed version)  (Read 1684 times)

MarquisMark9

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
Empty Cells and Validation (licensed version)
« on: February 22, 2017, 09:37:05 pm »
We have a requirement that cells require validation, but they can also be left empty. We can use the ESC key if they start editing a cell but then decide to leave it blank. The problem is if there was already a value in the cell and they edit to cell to make it blank, if they TAB they get the validation message, if they ESC it reverts back to its original numeric value. Basically is there any way to get the validation to accept a min and max range for the cell or accept the cell being blank?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Empty Cells and Validation (licensed version)
« Reply #1 on: February 22, 2017, 10:51:58 pm »
Validation callback can be used for custom validations.

https://paramquery.com/pro/api#option-column-validations

Custom validation/ validation callback is used for ShipCountry and Books columns in this example:

https://paramquery.com/pro/demos/editing_custom