Scroller when scrolling not correctly

Scroller when scrolling not correctly

dgenius169dgenius169 Posts: 4Questions: 1Answers: 0

Hi there, sorry for my bad English.
I used datatable with Scroller extensions and data Server-side like example https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html

The error is when scrolling data to the row (with example id = 49) data will call ajax to load more data but it render row (id 52) with the same position the row id =49.(scroll automatically)

Please help explain that issue (I guess the height of row is not same can effect that but not sure)
Thanks so much.

Example
https://jsfiddle.net/5gzde2bj/

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    When using Scroller the row heights must all be identical. There is no alternative. Otherwise it would be impossible for it to perform its positioning calculations.

    If you need different heights for rows, disable scrolling and use paging.

    Allan

  • dgenius169dgenius169 Posts: 4Questions: 1Answers: 0

    @Alan
    Thanks for reply my question.
    Just one more confuse about my example. All row is the same height but when scroll down, the rows are displayed still not correct.

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    It does look like an error in Scroller there. I'm working on updates at the moment - I'll try your example out with the latest code.

    Allan

  • dgenius169dgenius169 Posts: 4Questions: 1Answers: 0

    @allan
    Thanks so much, please show the example when u finish that.

  • dgenius169dgenius169 Posts: 4Questions: 1Answers: 0

    Hi @allan
    Did you find the problem I'm having?

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    I've not had a chance to look at it yet. I will update this thread when I've done so.

    Allan

Sign In or Register to comment.