Child rows further requires to have extra / detailed information
Child rows further requires to have extra / detailed information
richagrofas
Posts: 2Questions: 2Answers: 0
As explained in this example , http://www.datatables.net/examples/api/row_details.html I further have to add a new row for child rows. Can anyone please help me in this. II have tried replicating the same steps as done in first level and it's not working.
This discussion has been closed.
Answers
We would have to see what you've actually done to really help. But, the major concept of child rows is that more information is returned in your json data than displayed in your columns. That is, in your JSON data, you would include additional named values like "extension":"... phone # ... ", "country":" .. country name ...", "favoriteColor": " .. users favorite color ...". These pieces of additional information are NOT part of the columns definition, but they do get loaded in dataTables. Then, when formatting the child row, as in the example, you would using d.extension, or d.country, or d.favoriteColor to display those values as part of the child row.