How to search for subtable data
How to search for subtable data
JoyLee
Posts: 5Questions: 2Answers: 0
There is a sub-table in the table object. When searching, the contents of the sub-table cannot be filtered.My code is as follows:
var type = $.fn.dataTable.util.escapeRegex(param.type),
typeIdx =3;
tableObj.column(typeIdx ).search(type !=='all' ? '^'+filterNeType+'$' : '' , true,false).draw();
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Following on from your other thread,">https://datatables.net/forums/discussion/49302/how-to-solve-the-problem-that-the-child-form-and-parent-form-are-not-aligned#latestthread, I tried it with a simpler search, and that also works. Is your search valid?
Cheers,
Colin
Hi ,
My final solution has inherited here and I hope to help everyone.
JoyLee