Show filter row datatable on button click with modal
Show filter row datatable on button click with modal

Hi, i have two datatables. I want filter first datatable when i click on "Delitos" (button) on second datatable.
First Datatable
Second Datatable
When i click on "Delitos" i want to filter for example "Adrian Redondo" only, filtered with First Datatable. And dont show all records from first datatable, only First name and second name from that row only.
Thanks.
This discussion has been closed.
Replies
This example should help - here it's transferring rows between tables, but you can use that as a template for searching instead.
Colin
@colin Thanks! And How can i use that for button click automatically searching "First Name" and "Second Name" only on selected row instead?
You would call
search()
with those values.Colin
@colin And how can i search those values from another datatable?
With the API - you can search any DataTable on that page. Could you link to a test case, please, showing what you've got so far. That will help to progress this. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Colin