Scroller + bServerSide
Scroller + bServerSide
Hi!
I am trying to use following combination of features bServerSide + bScrollInfinite + Scroller plugin for virtual scrolling.
First two features (bServerSide and bScrollInfinite) work just fine. However when I try to include Scroller plugin in this combo "pagination" breaks down.
i.e. On initail page load table tries to load 3 rows although iDisplayLength is set to 10.
Is Scroller plugin even compatible with server side processing? Or I am just doing something wrong?
thanks in advance.
I am trying to use following combination of features bServerSide + bScrollInfinite + Scroller plugin for virtual scrolling.
First two features (bServerSide and bScrollInfinite) work just fine. However when I try to include Scroller plugin in this combo "pagination" breaks down.
i.e. On initail page load table tries to load 3 rows although iDisplayLength is set to 10.
Is Scroller plugin even compatible with server side processing? Or I am just doing something wrong?
thanks in advance.
This discussion has been closed.
Replies
Scroller is yet to be properly "announced" - although it is released. I'll be writing up a few details about Scroller in the next couple of days.
Allan
Unfortunately I am still facing the same problem.
In the first request iDisplayLength is 3. I can't find any reason for this behaviour :(.
I tryied to replicate your serverside based example but with same disapointing result.
btw. this will be killer feature.... once I manage to figure it out.
Allan
-> Scroller.js line 314 -> [code]this.s.dt._iDisplayLength = this.s.viewportRows * 3; [/code]
That is why I am getting only three rows :)
I am guessing that my table styling is somehow messing up calculations of row height and number.
Allan
I believe I can now figure some temporary workaround.
Can you tell me how to (in case if possible) acquire all nodes in table with scroller attached?
What a I really need is ability to select rows via checkbox in first column( and consequently select all those checkboxes
via check box in header).
Allan
That is why I wanted to combine Scroller with infinite scroling in the first place.
Idea was to load data while scrolling and than use Scroller functionality to render only rows that should be visible.
Allan
I was aiming for case when user sequentially loads data while scrolling downwards (whit out skipping any rows).
In that case you would have long array of loaded data (infinite scroll) but just part of that data rendered (Scroller)
We have such implementation in place via custom solution and i t works fine for 1000 or so rows, but now we are starting to run into problems because table data is appended in form of html so after a while browser crumbles under gigantic table.