grid.selection.getCells() return empty array


Please refer to,
I have the same problem. The .getCell() works, while .getCells() not. This occurs in the grid’s “afterSelect” event right after the .parse(data) and grid.selection.setCell(row).


Unfortunately, I was not able to reconstruct your issue locally.
Please, make sure that you’ve enabled the multiSelection mode for your grid.
If the problem still occurs for you please, provide a snippet, where the problem could be reconstructed.
You can create a snippet here:


Hi sematik.
Please replace the createGrid() with the following codes in the above link.

function createGrid() {
if (grid) {
grid = new dhx.Grid("grid", config);;"AfterSelect", function (row, col) {



Please, try to use the awaitRedraw helper to perform the code after the component’s rendering:
Something like:"AfterSelect", function (row, col) {
       dhx.awaitRedraw().then(function() {