Scroller Plugin and Row Grouping Plugin

Scroller Plugin and Row Grouping Plugin

rewenrewen Posts: 74Questions: 2Answers: 0

Hi guys,

I have an issue where I absolutely 100% need to use Scroller but I also need to have row grouping in an expandable/collapsible fashion. I'm using a plugin for grouping, from here: https://jquery-datatables-row-grouping.googlecode.com

There are 2 things I am worried about:
- The height of the scrollable portion of the table not adjusting when a group is collapsed
- The ability to scroll to a specific row no longer scrolling to the correct row

From what I've read elsewhere in the forums, when hiding rows we should use the search plugin (http://datatables.net/manual/plug-ins/search) so that the table knows which rows are hidden and account for them properly, as opposed to hiding DOM elements manually. I'm (stuck) using DT 1.9.4 right now so I'm going to assume the same thing applies using $.fn.dataTableExt.afnFiltering instead of $.fn.dataTable.ext.search. I haven't tried yet, but I assume this should solve my first issue.

As for the second issue I'm less sure of what to do since I don't believe the table takes the group TRs into account. So for example if I were to want to scroll a row which is normally the 101st row, but there are 10 group TRs before that, then it'll end up scrolling to only the 91st row. Any tips to handle this case?

Thanks!

Answers

  • rewenrewen Posts: 74Questions: 2Answers: 0

    Update.. the first issue is solved using a filter.

    Still looking to solve the second issue though. :)

This discussion has been closed.