I am using datatables and wanted to represent hierarchical JSON data in a grid. I got the data to display hierarchically in the datatable through ajax, but I am having trouble with javascript implementing the expanding and collapsing of the rows.
Please take a look at this JSBin and try expanding and collapsing and you will see the issue:
http://live.datatables.net/qedufunu/1/edit
The behavior should be like any hierarchical data (like the windows explorer):
Please take a look and suggest any JS changes. Please feel free to modify the fiddle.
Thanks.
Okay. I fixed it myself. For folks who need a solution for nested rows in datatable, this should help immensely.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.