Hidden row
Hidden row
I have a question about hidden rows. I'm aware that there is an example provided here http://datatables.net/examples/api/row_details.html, but my situation is a little bit different.
I have a GroupViewModel that contains [code]ElementViewModel PrimaryElement[/code] and [code]ElementViewModel[] LinkedElement[/code]. In the DataTable, each row contains an Element. I want it to show PrimaryElement first, and a user can expand each row to see LinkedElement. I'm not sure how I can achieve this. I think I can write a function that hides and shows LinkedElement rows when a user clicks, but iDisplayLength won't work properly. I want each page to show 30 records regardless of how many LinkedElements are shown.
Anyone has any ideas? Thanks!
I have a GroupViewModel that contains [code]ElementViewModel PrimaryElement[/code] and [code]ElementViewModel[] LinkedElement[/code]. In the DataTable, each row contains an Element. I want it to show PrimaryElement first, and a user can expand each row to see LinkedElement. I'm not sure how I can achieve this. I think I can write a function that hides and shows LinkedElement rows when a user clicks, but iDisplayLength won't work properly. I want each page to show 30 records regardless of how many LinkedElements are shown.
Anyone has any ideas? Thanks!
This discussion has been closed.