Wijmo UI for the Web
Configuring Columns
Wijmo User Guide > Widgets > Grid > Grid Concepts > Columns > Configuring Columns

You can configure the wijgrid columns individually by specifying a 'columns' option that contains an array with options for each column, like in this code sample.

Sample Script
Copy Code
$("#demo").wijgrid({
    /* bind data */
    data: salesData,

    /* configure grid */
    allowEditing: true,
    highlightCurrentCell: true,

    /* configure grid columns */
    columns: [
        {readOnly: true}, /* first column is read-only */
        {dataType:'number', dataFormatString:'n0'} /* second column is numeric */
    ]
});

The options available for the columns are described in the Wijmo API documentation under IColumn.

Particularly useful column options include:

See Also

KO

Data

Reference