Hello,
I’m using the 6.4.1 version, but I can’t find a document, so I’m asking here a question.
When I create a grid, the “dhx_grid-content” and “dhx_grid-body” classes are zeroed in height.
And there’s only one case of data on the grid.
<div style="height: 100%; width: 100%" id="grid"></div>
const grid = new dhx.Grid("grid", {
columns: [
{ minWidth: 150, id: "country", header: [{ text: "Country" }] },
{ id: "population", header: [{ text: "Population" }] },
{ id: "yearlyChange", header: [{ text: "Yearly Change" }] },
{ id: "netChange", header: [{ text: "Net Change" }] },
{ id: "density", header: [{ text: "Density (P/Km²)" }] },
{ id: "area", header: [{ text: "Land Area (Km²)" }] },
{ id: "migrants", header: [{ text: "Migrants (net)" }] },
{ id: "fert", header: [{ text: "Fert. Rate" }] },
{ id: "age", header: [{ text: "Med. Age" }] },
{ id: "urban", header: [{ text: "Urban Pop" }] }
],
data: dataset,
adjust: true
});
const rowId = grid.data.getId(1);
grid.addCellCss(rowId, "country", "my_сustom_сlass");
grid.addCellCss(rowId, "netChange", "my_сustom_сlass");
}
Also, is there a way to upgrade from 6.4.1 to 6.4.2?