Accumulate Filter using filter()?

Accumulate Filter using filter()?

manila24manila24 Posts: 9Questions: 5Answers: 0
edited June 2020 in Free community support

Hi!

Sad news, my proposed design for dashboard filter using Search Panes is rejected by our client. So I have to create a custom filter which accumulates the selected filter. My question is that can use filter() to accumulate selected filter ? I'm using datatables for our tables.

Thanks for any suggestion.

This question has accepted answers - jump to:

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921
    Answer ✓

    What do you mean by accumulate filter?

    The filter() API does not perform searches of the table, from the docs:

    This method should not be confused with search() which is used to search for records in the DataTable - i.e. the filter method does not change the rows that are displayed in the DataTable.

    Are you looking for something like this example which uses select2?
    http://live.datatables.net/jetupuda/1/edit

    Kevin

  • manila24manila24 Posts: 9Questions: 5Answers: 0
    edited June 2020

    Oh. sorry about that, so search() methods is the who search for the records.
    Thanks for the link, Its exactly what im looking for. Gonna try to apply this to my work to see if it works for me. Many Thanks Sir, Kevin

  • manila24manila24 Posts: 9Questions: 5Answers: 0

    Question, Can I populate a select element outside the datatable with the data inside the table?

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    Answer ✓

    This example here shows how to create a select element within the table's footer - that select could be anywhere in the DOM, so that code could still be used,

    Colin

This discussion has been closed.