Searching in Nested tables

Searching in Nested tables

mild4umild4u Posts: 3Questions: 0Answers: 0
edited June 2013 in General
Hi,
I have this new scenario where I am not sure if datatables can be used. Here is the sample: http://jsfiddle.net/CBYUH/3/
I have wired-up datatable to the "root" table. It works when I search for say terms London, Alex, John, Matt.

What I want is to just show that particular row in which the term occurs. So say search for "John" should show the relevant inner table and the row containing John in the inner table. Everything else need to be hidden.

I know I will need to do some customization but I don't know which event/function in datatables.js I should be messing with. If I can catch which particular inner row has "John" I can hide other non-relevant rows/tables.

Or if there is any way I can put the search-box outside but still let items be searched in the inner most tables. I don't need search on outer tables but just inner ones. The issue is the inner tables could be hidden if "All" checkbox is checked.

If this is possible via DataTables any sample code or even any pointers where I should start looking for.

Thanks.
This discussion has been closed.