Column filtering conflicting with horizontal scross bar
Column filtering conflicting with horizontal scross bar
hermes980
Posts: 41Questions: 13Answers: 0
Hi all,
I am trying to use column filtering with a horizontal scroll bar, but it is having rendering issues where once I select my value, it collapses to the point where the scroll bar is hiding the column filter. Any ideas? The example is in an intranet or else I would show it.
Thanks,
K.
This discussion has been closed.
Answers
I'm running into this same issue, and also can't post a live example.
But, here's what I'm seeing.
The drop-down filters in html that looks something like the following inside of
<
div class="dataTables_scroll">:
And the scrollbar code is putting a similar bit of code inside that same "datatTables_scroll" div, but instead it's a separate inner div (class="dataTables_scrollFoot". It's also re-adding the original footer (i.e., with the column names instead of the drop-down filters).
So, what I think is happening is that the scrollbar code initially appends its "footer" (scrollbar plus the footer headings), when you select something in a filter drop-down, the re-draw is completely removing the dropdown filter divs (which may have something to do with the same class name being used).
It looks like anything that causes a re-draw of the datatable (sorting columns, doing the "all-column search" ,etc.) causes this behavior to occur.
Maybe we can adjust where it appends too? Anyone else have ideas?