Scroller - 'filter' and 'sort' events

Scroller - 'filter' and 'sort' events

jhaitasjhaitas Posts: 32Questions: 0Answers: 0
edited June 2012 in Bug reports
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?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Hi jhaitas,

    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
  • jhaitasjhaitas Posts: 32Questions: 0Answers: 0
    It works for me.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Excellent - I'll be wrapping it up into a release alongside DataTables 1.9.2 soon.

    Allan
This discussion has been closed.