Error when selecting multiple rows in grid

I have multiselect defined on a grid. (grid.enableMultiselect(true)) When I am selecting multiple rows on the grid I am getting a javascript error that ‘_childIndexes’ is null or not an object, although the multi-select is working. Where is this error coming from?

Thank you.

Please, provide the code of grid intialization.