selectedItems / selectedRows are removed when paging virtual grids

Posted by: p.wijmo on 6 October 2021, 6:41 am EST

  • Posted 6 October 2021, 6:41 am EST

    My setup is a FlexGrid, virtualised and populated with an oData data source.

    The grid has ‘ListBox’ selection mode set, and there are around 25,000 rows in total in the source data.

    • I scroll to around row 5,000 and click the first row.
    • I scroll to around row 15,000 shift-click the second row, giving me a selectedRows / selectedItems length of ~10,000 rows.
    • I start scrolling back through the rows by rapidly clicking on the scrollbar; there’s a short delay but eventually the rows are rendered, however they don’t have the selected state that I expect
    • Examining the rendered html shows that the wj-row doesn’t have aria-selected=“true” and none of the wj-cells have aria-selected=“true” or class=“wj-start-multi-selected”
    • If I console.log selectedRows.length and selectedItems.length in my itemFormatter, I can see that the length and content of both of these arrays reduces when I click, sometimes by as much as 200 rows (the page size I’ve set for virtualisation)

    Is this a know issue?

  • Posted 6 October 2021, 9:31 am EST

    Just to add, this behaviour appears limited to the ListBox selection mode. RowRange does not seem to suffer the same problem.

  • Posted 7 October 2021, 7:34 am EST

    Hello,

    This seems like a bug, we have escalated the issue to the Dev team for further investigation with an internal tracking ID WJM-21112. We will update you as soon as we get any updates on this.

    Let us know if you have any other queries.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels