Search for Hidden Child rows (show extra / detailed information)
Search for Hidden Child rows (show extra / detailed information)

I am not able to search in Child rows (show extra / detailed information) datatables
please help
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @dinesh87 ,
There's a few threads on this - see here and here for example,
Cheers,
Colin
The child rows are not apart for the data set Datatables searches. You will need to code this. Here is an example:
http://live.datatables.net/begujizo/1/edit
The example assumes that the data to be search is part of the original data set returned in the ajax response. In this case its an array of data where only two of the elements in the array are shown in the table and two others are used in the child rows. It relies on the
draw
to process the child rows. It usesfilter()
androws().indexes()
to get the row indexes that match the search criteria. For efficiency it uses theselector-modifier
of{page: 'current'}
to process only those rows being displayed. This can be removed to process all rows if desired.Kevin
Thanks a lot @kthorngren