columns
Required. Specifies the configuration of grid columns
columns: object[];
Example
const treegrid = new dhx.TreeGrid("treegrid_container", {
columns: [
{ width: 100, id: "a", header: [{ text: "#" }] },
{ width: 100, id: "b", header: [{ text: "Title" }] },
{ width: 200, id: "c", header: [{ text: "Name" }] },
{ width: 200, id: "d", header: [{ text: "Address" }] }
],
data: dataset
});
Related sample: TreeGrid. Initialization with config.data
Each column object may contain a set of properties. You will find the full list of the configuration properties of a TreeGrid column here.