-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Filter/Sort with hidden child rows #40
Comments
Could you show me a bit of the table layout? And also the line where the error occurs (if you are not using the minified version)? You can specify a function in place of a filter, e.g.:
|
Here is the error I am getting:
Table for example purposes (simplified). First row is the parent row, the second tag is for the hidden detail row.
|
I do not really understand your example... You have two different rows each time? And you have one If you really have two different rows, it'll be quite complicated to do what you want... To use datatable at all actually since your two rows will probably get messed up when sorting / etc. |
I have made a pretty complex table, and in the interest of showing important items without making the page overwhelming, I've made child rows in the table with the additional breakout of information. Then the user can click on the table row itself, the child row will expand and the details revealed using Bootstrap Accordion.
When I do this though, I get an error saying "Cannot read property 'innerHTML' of undefined", but removing the child rows make everything work again.
I only want the filtering to work on the parent rows, and leave the child rows alone. I would imagine that since the child row does not have the same structure as the parent row (essentially tables within the
<tr>
), it is not able to generate the filtering correctly.Any suggestions? Perhaps a method to tell datatable to only filter/sort on the parent rows?
The text was updated successfully, but these errors were encountered: