Wijmo UI for the Web
columns Option
wijmo.grid.wijgrid Namespace > options type : columns Option

An array of column objects.

Default value: []

Type: wijmo.grid.IColumn[]

 

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  []
    returnsValue = $(".selector").wijgrid("option", "columns");
    
    // Set value
    var newValue; // Type:  []
    $(".selector").wijgrid("option", "columns", newValue);
        
});
var columns : ;
Example

The first example below creates columns like in this image.

$("#element").wijgrid({
    columns: [
        {dataType: "number", sortDirection: "ascending", dataFormatString: "n0"},              
        {dataType: "currency"}, 
        {dataType: "number", dataFormatString: "n0"},                     
        {dataType: "number", dataFormatString: "p0"}                 
    ]
});
$("#element").wijgrid({
    columns: [ 
        {headerText: "column0", allowSort: false}, 
        {headerText: "column1", dataType: "number"} 
    ] 
});
Remarks
See the columns method for more information.
See Also

Reference

options type
columns Method
wijgrid jQuery Widget