SearchPanes and table.length
SearchPanes and table.length
leprimo
Posts: 25Questions: 4Answers: 0
Despite an intensive search I cannot find a solution, maybe someone can give me a hint.
After filtering through the SearchPane I want to see all filtered results in the table.
My length menu is like:
lengthMenu: [[10, 25, 50, -1], [10, 25, 50, "Alle"]]
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm not clear what you mean. Are you expecting all the search results to be displayed, regardless of the current page length?
Colin
Hi Colin,
exactly, that's what I mean. I want the table to automatically take the length of the search results. Better?
There's nothing built-in, but you could listen to
search
and re-size the table based on the filtered rows. The only down-side is that the event would be triggered for all searches, not just those from SearchPanes,Colin
Here's a crude example - it'll need some tidying up,
Colin
Many thanks, i think that does what i want.