Search in all JSON Data?

Search in all JSON Data?

Chris4712Chris4712 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

Answers

  • kthorngrenkthorngren Posts: 20,320Questions: 26Answers: 4,773
    edited March 2021

    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. The format() function can be used to display what you need.

    Kevin

This discussion has been closed.