Wijmo UI for the Web
dataType Field

Column data type. Used to determine the rules for sorting, grouping, aggregate calculation, and so on. Possible values are: "string", "number", "datetime", "currency" and "boolean".

Syntax
Javascript (Usage) 
var instance; // Type: wijmo.grid.IColumn;
var value; // Type: string
value = instance.dataType;
Javascript (Specification) 
var dataType : string;
Example
$("#element").wijgrid({ columns: [{ dataType: "string" }]});
Remarks
Possible values are: "string": if using built-in parser any values are acceptable; " " considered as an empty string, nullString as null. "number": if using built-in parser only numeric values are acceptable, also " ", "" and nullString which are considered as null. Any other value throws an exception. "datetime": if using built-in parser only date-time values are acceptable, also " ", "" and nullString which are considered as null. Any other value throws an exception. "currency": if using built-in parser only numeric and currency values are acceptable, also " ", "" and nullString which are considered as null. Any other value throws an exception. "boolean": if using built-in parser only "true" and "false" (case-insensitive) values are acceptable, also " ", "" and nullString which are considered as null. Any other value throws an exception.
Browser Compatibility
7
5
5

See Also

Reference

IColumn Interface

 

 


© 2013 All Rights Reserved.

Send comments on this topic.