Wijmo UI for the Web
dataFormatString Option

A pattern used for formatting and parsing column values.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  string
    returnsValue = $(".selector").c1field("option", "dataFormatString");
    
    // Set value
    var newValue; // Type:  string
    $(".selector").c1field("option", "dataFormatString", newValue);
        
});
Javascript (Specification) 
var dataFormatString : string;
Example
$("#element").wijgrid({
    columns: [
        { dataType: "currency" }, 
        { dataType: "number" }, 
        { dataType: "number", dataFormatString: "p0" }
    ]
});
Remarks
The default value is undefined ("n" pattern will be used for "number" dataType, "d" for "datetime", "c" for "currency"). Please see the https://github.com/jquery/globalize for a full explanation and additional values.
Browser Compatibility
7
5
5

See Also

Reference

options type
c1field jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.