Search in all JSON Data?
Search in all JSON Data?
Chris4712
Posts: 11Questions: 2Answers: 0
Hello,
I have a lot of data via JSON.
Some are displayed in the main table and with one click the table expands (Like here: https://datatables.net/examples/api/row_details.html).
Is it possible, without hidden columns, to search all JSON data, and display the corresponding row?
Greetings
Christian
This discussion has been closed.
Answers
As long as the data is part of the row you can easily display it. The example you linked shows this. The extension in the child is not one of the columns. Look at the Ajax tab to see the full set of data returned for the row.
But you aren't limited to display the row data. You can display anything you want. You can use the
ajax.json()
to get the full JSON response if you ned to find data elsewhere in the response. Theformat()
function can be used to display what you need.Kevin