Search pane filter that returns the top 10 highest values

Search pane filter that returns the top 10 highest values

Rawland_HustleRawland_Hustle Posts: 94Questions: 16Answers: 0

Link to test case: https://themeadow.se/ntjperrors/index.html
Debugger code (debug.datatables.net):
Error messages shown: No error messages shown.
Description of problem:
I'm using custom search pane filters. Is it possible to have a custom search pane filter that returns the top 10 highest values based of a given column?

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    That's an interesting idea, but no, that's not possible. SearchPanes is just matching the strings in a search, along with any other filtering that's also taking place, so there's no option to limit the results for just that type of search.

    Colin

  • Rawland_HustleRawland_Hustle Posts: 94Questions: 16Answers: 0

    Do you think I could push each row to an array, sort it by value and split it on index 9?

  • allanallan Posts: 64,311Questions: 1Answers: 10,621 Site admin

    With SearchPanes you can have custom options, so you could query the data source, bin the data and get the top 10 and then populate them into some custom panes.

    Allan

This discussion has been closed.