Posted 19 October 2019, 6:40 am EST
Hi,As the title says I'm using flex grid with selection mode set to MultiRange.
How do i clear multiple selection ranges?
If i use flexgrid.select(-1, -1); it only clears current / last selection.

Forums Home / Wijmo / General Discussion Topics
Posted by: bozjator on 19 October 2019, 6:40 am EST
Posted 19 October 2019, 6:40 am EST
Hi,Marked as Answer
Replied 20 October 2019, 4:58 pm EST
Hi,grid.selectedRanges.forEach(sr => {
sr.setRange(-1, -1, -1, -1);
});
grid.select(-1, -1);
grid.refresh();