Datatables scroller displaying background on scroll, even in default example

Datatables scroller displaying background on scroll, even in default example

Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

Hello,

I thought this was just my code/browser until I took a look at the default example here: https://datatables.net/extensions/scroller/examples/initialisation/large_js_source.html

Here is an example image:

If you scroll down using your wheel on the mouse to around 61 records I've noticed that the table will not load the next page(s) of data.

Is there a fix planned for this/a current work around?

Tested in IE.11 and Firefox 61

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    Hi @Andrew1178 ,

    Good spot. I've raised that as issue #586 in our internal bug system. I'll report back here when it's address - it may get a looking at next week.

    Cheers,

    Colin

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    Cheers Colin, appreciate it

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    Hey @Colin, any update on this? I checked the nightly builds and it didn't seem to make a difference.

  • gregarmfieldgregarmfield Posts: 3Questions: 1Answers: 0

    I'm having the same issue in multiple browsers

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @gregarmfield Do you have the same issue where you scroll down and it seems to only partially load the next set of data with maybe half the table showing the table backing? (the stripes)

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @gregarmfield Here is the link to the GitHub issue for reference: https://github.com/DataTables/Scroller/issues/77

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    Its on my list of things to do today. I'll post back when I've had a chance to look into it (after my Forum rounds).

    Allan

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @allan Thank you

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    Unfortunately this isn't proving to be easy. More work on it needed - I'm afraid I won't have a fix for it today.

    Allan

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @allan Okay, thank you for investigating into it.

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @allan Is there a version which doesn't have the issue?

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    1.4.4. It does have other issues that were fixed in 1.5.0 though...

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    I've made a bunch of changes that should resolve there. There is still one hitch - if you position the table around row 500 and scroll all the way back up (on a 5000 row table), it won't actually get back to 0 using mouse wheel scrolling only.

    That's the next thing on the list to fix.

    Allan

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin
    Answer ✓

    And a change for that.

    Still work to be done on improving Scroller, but it should actually work now.

    The nightly build will carry these changes shortly. Any feedback very welcome.

    Allan

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @allan. Thank you, at some point today I will add the nightly build of scroller to my dev environment and let you know how it goes.

  • Andrew1178Andrew1178 Posts: 24Questions: 6Answers: 0

    @allan. I tested it and it works fine, thank you! It's funny, I logged this issue which I thought applied to my application, but it does not. I have a different issue where the DataTable backing seems to be showing when I scroll down. I was creating a JSFiddle for an example but while I was doing this I discovered the reasoning behind my error(I had a few rows which were different heights to the rest and it caused the scroller to incorrectly calculate the table). Anyway, I will change this so my rows are the same height so it works. Thanks for fixing this bug and inadvertently fixing my other!

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    Hehe - glad I could help ;).

    I'm making a few other changes to Scroller to bring it more up to date with the other DataTables extensions and I'm going to publish it as a v2 in the not too distant future.

    Allan

This discussion has been closed.