Step 1: online samples for DHTMLX Grid
Step 2: Grid. Sortable columns
Step 3: Replace JavaScript content with the following steps
Step 4: Drag to change the width of the preview
Step 5: Observe the column width of c
const grid = new dhx.Grid("grid", {
columns: [
{ minWidth: 150, id: "country", header: [{ text: "a" }], width: 155 },
{ id: "population", header: [{ text: "b" }] },
{ id: "yearlyChange", header: [{ text: "c" }] ,maxWidth: 200 },
{ id: "netChange", header: [{ text: "d" }] ,maxWidth: 120},
{ id: "density", header: [{ text: "e" }], sortable: true ,maxWidth: 120}
],
autoWidth:true,
adjust: false,
data: dataset,
sortable: false
});