SpreadJS Documentation
CustomValueType Enumeration
Specifies the custom value type.
Members
MemberDescription
EmptyIndicates whether the cell value is empty or null.
ErrorIndicates whether the cell value contains a calculation error.
FormulaIndicates whether the cell value is a formula.
NonEmptyIndicates whether the cell value is not empty or null.
NonErrorIndicates whether the cell value does not contain a calculation error.
Example
The examples validate the cell data.
var nCondition = new GcSpread.Sheets.FormulaCondition(GcSpread.Sheets.CustomValueType.Formula, "A1>0");
var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition)
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
activeSheet.setValue(0, 0, -4);
var nCondition = new GcSpread.Sheets.FormulaCondition(GcSpread.Sheets.CustomValueType.NonEmpty);
var validator = new GcSpread.Sheets.DefaultDataValidator(nCondition);
validator.IgnoreBlank(false);
activeSheet.getCell(0, 0, GcSpread.Sheets.SheetArea.viewport).dataValidator(validator);
spread.highlightInvalidData(true);
Inheritance Hierarchy

Object
   GcSpread.Sheets.CustomValueType

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.