Scroller - 'filter' and 'sort' events
Scroller - 'filter' and 'sort' events
jhaitas
Posts: 32Questions: 0Answers: 0
When scrolled lower in the table - then applying either a 'filter' or a 'sort' for a column ...
The table scrolls to the top - but no data is there ... the user can scroll down and find the data though
I think ideal behavior here would be to return the data at the top of the table - so when the table goes to the first row it isn't blank ...
here is a fix i have for it (outside of the scroller plugin)
oInstance.bind('sort', function (e, o) { o.oScroller.fnScrollToRow(0, false); });
oInstance.bind('filter', function (e, o) { o.oScroller.fnScrollToRow(0, false); });
thoughts?
The table scrolls to the top - but no data is there ... the user can scroll down and find the data though
I think ideal behavior here would be to return the data at the top of the table - so when the table goes to the first row it isn't blank ...
here is a fix i have for it (outside of the scroller plugin)
oInstance.bind('sort', function (e, o) { o.oScroller.fnScrollToRow(0, false); });
oInstance.bind('filter', function (e, o) { o.oScroller.fnScrollToRow(0, false); });
thoughts?
This discussion has been closed.
Replies
I think this should be fixed in the 1.0.3.dev version of Scroller: http://datatables.net/download/ . Could you possibly try that version and let me know if that addresses the issue for you?
Thanks,
Allan
Allan