Filter data in child row

Filter data in child row

romainacromainac Posts: 1Questions: 1Answers: 0
edited December 2014 in Free community support

I use a table based on the example of tables with children (https://datatables.net/examples/api/row_details.html)

In this example, the filter works only on parent rows, my question is :

How I can filter this table if I wanted to filter on the data "Extension number" ?

Example : search with the value : "5407" should give the line of "Airi Satou".

In my context, I have almost the same data structure except on the data child
In the example :

{

"data": [{

"name": "Tiger Nixon",

"position": "System Architect",

"salary": "$320,800",

"start_date": "2011/04/25",

"office": "Edinburgh",

"extn": "5421"

},

In my context :

{

"data": [ {

"name": "Tiger Nixon",

"position": "System Architect",

"salary": "$320,800",

"start_date": "2011/04/25",

"office": "Edinburgh",

"child": : [

{

"key1": "value1",

"extn": "5421",

},

otherwise the javascript code is the same...

Thank you in advance for your help

This discussion has been closed.