How can i search for text in parent and child nodes in tree structure table?

How can i search for text in parent and child nodes in tree structure table?

kiran_pasulurikiran_pasuluri Posts: 1Questions: 1Answers: 0




my search code is:

var oTableQuery = $('#queriesTable').dataTable({"paging": true,"searching": true,
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 0 ] },
{ "width": "2%", "targets": 0 }
],
"aaSorting": [[1, 'asc']] //asc
});

it is only searching at parent level as in image 2. but i am unable to search child level.
Please let me know how can i improve my search ?

Answers

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946

    You can use the below to search all tables on the page:

    $('table.dataTable').DataTable().search( 'search text' ).draw();
    

    Kevin

This discussion has been closed.