DhxGrid.selection.getCells() bugs


Please replace the javascript with below, try to select multiple cells, then click the radio button. The alerted count of the selected cells is one more than the real count.

let grid;
const config = {
    columns: [
        { 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" }] }
    adjust: true,
    data: JSON.parse(JSON.stringify(dataset)),
    multiselection: true,
    selection: "cell",

function createGrid() {
    if (grid) {
    grid = new dhx.Grid("grid", config);
    grid.selection.setCell(grid.data.getItem(grid.data.getId(0)), grid.config.columns[0]);


const selector = document.querySelectorAll("[name=selection]");

for (let index = 0; index < selector.length; index++) {
    selector[index].addEventListener("change", function (e) {

Unfortunately I was not able to reproduce your issue locally.
According to your mentioned snippet:
Here is a short video:

If the problem still occurs for you could you please, provide the exact steps to reproduce the problem

Please try to use shift instead.

Thank you for your clarification.
The problem is confirmed.
We’ll try to to fix it in one of the future updates.

We have fixed your reported problem in the latest dhx.Suite update (7.3.9).
Now the multiselection should work correctly.
You can check it here:
Please, try to update your dhx.Suite package to get that fix.
Thank you for your report once again.