olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.71k stars 818 forks source link

How Filter data internally? #81

Closed codevite closed 7 years ago

codevite commented 7 years ago

I'd like to filter the Data based on the Row selected in a Master Table. So show the table data without showing the Filters options. Master and Childs tables will allow CRUD operation. How can I achieve this filter operation?

olifolkerd commented 7 years ago

You can programatically filter tables using the _setFilters_ function:

$("#example-table").tabulator("setFilter", "age", ">", 10);

You can perform simple filters or pass custom filter functions for more complex operations. Full details can be found in the Filter Documentation.

You could use the _rowClick_ or _cellClick_ calbacks to determine when a row is clicked, or use the example code from the row selection examples in this issue as a basis for handing the selection in the master table

codevite commented 7 years ago

Good!