I have a V1.1 grid that is not visible. When I set its selected indices by this code, it works the first time only.
_grid.selection.callMethod('clear');
_grid.selection.callMethod('select', [n]
);
Subsequent calls to the code above with different indices does not update the grid when it becomes visible. The first selection lingers, and only the new selections take hold once a "
selected
" row is clicked.
I’ve tried calling "
updateStyles
" and "
refreshItems
" but no luck.
I was wondering if there is a method I can call to enforce a redraw/update/refresh on the selections.
Thank you.