Wijmo UI for the Web
dataType Option

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) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").c1field("option", "dataType");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").c1field("option", "dataType", newValue);
        
});
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

options type
c1field jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.