SpreadJS Documentation
CriteriaType Enumeration
Indicates the data validator criteria type.
Members
MemberDescription
AnyValueSpecifies that the data validation allows any type of value and does not check for a type or range of values.
CustomSpecifies that the data validation uses a custom formula to check the cell value.
DateSpecifies that the data validation checks for and allows date values satisfying the given condition.
DecimalValuesSpecifies that the data validation checks for and allows decimal values satisfying the given condition.
ListSpecifies that the data validation checks for and allows a value that matches one in a list of values.
TextLengthSpecifies that the data validation checks for and allows text values whose length satisfies the given condition.
TimeSpecifies that the data validation checks for and allows time values satisfying the given condition.
WholeNumberSpecifies that the data validation checks for and allows whole number values satisfying the given condition.
Example
This example returns the type.
spread.highlightInvalidData(true);
var dv = GcSpread.Sheets.DefaultDataValidator.createListValidator("1,2,3");
dv.showInputMessage = true;
dv.inputMessage = "Value must be 1, 2 or 3.";
dv.inputTitle = "tip";
activeSheet.setDataValidator(1, 1, dv); 
alert(dv.type);
Inheritance Hierarchy

Object
   GcSpread.Sheets.CriteriaType

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.