Magic number 80

Magic number 80

LukasIsHereLukasIsHere Posts: 2Questions: 1Answers: 0

Hi,
I have recently encountered a problem which I can't deal with by myself.

The thing is that i add rows dynamicaly after scrolling to the bottom of Scroller container. I pull data from serwer via AJAX and add these rows under the existing ones. It all works fine untill i reach 81-st row in the table (counting by _DT_RowIndex). Then the scroller container still grows by correct number automatically but rows are not displayed. The only thing i can see i stripped background of the container.

The best thing is that when i scroll back up and then down again to the bottom the rows are there like nothing happened :hushed: :

My question is, does DataTables trigger any events when scrolling? I can see that it does something while scrolling (i don't mean statesave because i have already turned it off) but i can't get to the source. Maybe you can help me somehow. I can't really send the script so I'am just asking for some clues that I could work with.

Any help will be apreciated

Answers

  • allanallan Posts: 63,813Questions: 1Answers: 10,517 Site admin

    My question is, does DataTables trigger any events when scrolling?

    page and draw will be triggered if you are using Scroller.

    However, if you provide a link to the page I can take a look at it.

    Allan

  • LukasIsHereLukasIsHere Posts: 2Questions: 1Answers: 0

    OMG, it worked.

    It seems that it was all about that paging. Even tough I had it turned of (i mean "not set") it still had some limitations.

    So now after I add new rows I also increase the page length (page.len() ) and it works.

    Nice!
    Thank you very much, i was fighting with it for few hours.

This discussion has been closed.