Scroller from large JS source with client side processing

Scroller from large JS source with client side processing

2Xmatch2Xmatch Posts: 2Questions: 0Answers: 0
edited December 2013 in Plug-ins
Paginating still seems to override scroller by loading only the first 10 rows. To get all the elements i have to set paginate size to -1, then it loads all the rows into the dom so using scroller for performance and dynamic table rendering becomes pointless (somewhat expected)

Live example.I couldn't get the debugger past uploading data to server.
http://live.datatables.net/ukihoq3/edit#source
My work is based on http://datatables.net/release-datatables/extras/Scroller/large_js_source.html
Unfortunately i think the syntax has changed since even by copy pasting the example code it fails without setting "aoColumns" and it still loads only the first 10 rows.

Replies

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

    Thanks for the test case. The test case doesn't appear to include Scroller. I've added it in here, and it appears to work, I think, as expected:
    http://live.datatables.net/ukihoq3/2/edit

    Regards,
    Allan
  • 2Xmatch2Xmatch Posts: 2Questions: 0Answers: 0
    edited December 2013
    Thanks. From the example i fell under the impression that scroller was built into dataTables and all you had to do is activate it by adding the S to the sDom.

    EDIT: Is there a way to optimize dom rendering for tables with long rows at it is right now for tables with lots of columns?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    As in virtual columns? Not really - because DataTables works with HTML tables, rather than a grid of DIV elements or similar, the whole row needs to be present. The closest would be to dynamically show and hide columns, but I think overall that would hinder performance more than help it.

    Allan
This discussion has been closed.