Scroller not always triggering server-side call after sort or filter.

Scroller not always triggering server-side call after sort or filter.

muppetmuppet Posts: 2Questions: 1Answers: 0

How to reproduce: setup a table with thousands of rows, server-side processing, Scroller, and a boundaryScale of 1.

1) Drag the scrollbar down far. The first AJAX call occurs fine. Let's say s.redrawBottom is set to 10,000.
2) Now, filter or sort. The next AJAX call also happens fine, however the iScrollTop and boundaryPx variables in the method _fnDrawCallback() are not updated. This causes s.redrawBottom to be calculated to be about 20,000, instead of around 100. s.redrawTop is correctly updated to be 0.
3) Scroll down a little. The AJAX call doesn't happen as it should, since s.redrawBottom isn't correct. You end up scrolling into blank space.

This is reproducible with the default boundaryScale of 0.5, however the issue occurs much less often.
Thank you for your time.

Answers

  • sqlnewsqlnew Posts: 1Questions: 0Answers: 0

    I have encountered this problem, ask how to solve?

  • muppetmuppet Posts: 2Questions: 1Answers: 0

    As a workaround, I've set boundaryScale to 0.5 and doubled displayBuffer. It is not ideal though. I would prefer a higher boundaryScale :(

This discussion has been closed.