Hidden row

Hidden row

xueunixueuni Posts: 1Questions: 0Answers: 0
edited November 2011 in General
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!
This discussion has been closed.