How to render DataTables when every ODD row is an accordion row that's hidden... and...
How to render DataTables when every ODD row is an accordion row that's hidden... and...
pborregg
Posts: 59Questions: 2Answers: 0
I have a datatable that's rendered with accordion rows to show DETAILS for the current row selected.
Problem: The UNKNOWN parameter error occurs on ROW [1] the first DETAIL row for ROW[0]. The same thing occurs for ROW[3,5,7,9,11, and so on.... to row n]
Also, to complicate things even more, we have three conditions: CRITICAL, WARNING and OKAY. Only Critical and Warning show initially and OKAY is toggled by the user.
Hence, when the table is initially rendered, there are NO green or OKAY rows. Only RED (Critical) and YELLOW (Warning) rows which can be toggled on and off and deleted (removed) from the database there by a return trip to the server would be required to repaint the table.
It's really funky.
Any suggestions?
Thanks,
Peter
Problem: The UNKNOWN parameter error occurs on ROW [1] the first DETAIL row for ROW[0]. The same thing occurs for ROW[3,5,7,9,11, and so on.... to row n]
Also, to complicate things even more, we have three conditions: CRITICAL, WARNING and OKAY. Only Critical and Warning show initially and OKAY is toggled by the user.
Hence, when the table is initially rendered, there are NO green or OKAY rows. Only RED (Critical) and YELLOW (Warning) rows which can be toggled on and off and deleted (removed) from the database there by a return trip to the server would be required to repaint the table.
It's really funky.
Any suggestions?
Thanks,
Peter
This discussion has been closed.
Replies
DataTables requires that this equation be satisfied: `rows * columns = cells` . If that is not true, then you will get errors.
Allan
.... more divs and code....
According to your above reference and discussion.... my code above, won't work...correct?
[code]
...more code...
[/code]
Allan
[/code]
Seriously, if I have to format this using NO COLSPANS, I can... if that'll work, my employer will just have to understand.
There are two ways to attach one row to another in DataTables at the moment - neither of which will work automatically:
1. Row details using fnOpen / fnClose . You could just have them "open" all of the time.
2. Manually using fnDrawCallback - attach them as needed.
Allan