data

specifies an array of data objects to set into the grid

array data;

Example

var dataset = [
    {
        "id": 0,
        "a": 1,
        "b": "Linwood Long long long",
        "c": "Petersen",
        "d": "Dahlgreen Place"
    },
    {
        "id": 1,
        "a": 2,
        "b": "Edenburg",
        "c": "Agnes",
        "d": "Gem Street"
    },
    // more columns
];
 
 
var grid = new dhx.Grid("grid_container", {
    columns: [// columns config],
    data: dataset
});

Related samples

See also
Back to top