Wijmo UI for the Web
dataFormatString Field

A pattern used for formatting and parsing column values.

Syntax
Javascript (Usage) 
var instance; // Type: wijmo.grid.IColumn;
var value; // Type: string
value = instance.dataFormatString;
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

IColumn Interface

 

 


© 2013 All Rights Reserved.

Send comments on this topic.