fnSetColumnVis with multiple rows in thead
fnSetColumnVis with multiple rows in thead
Jens Gutzeit
Posts: 22Questions: 0Answers: 0
Hello allan,
I have 2 rows in thead (no colspan stuff, just the TH-label and a TD with a form to filter and some other cool things). I finally implememted the show/hide stuff and hit a problem that looks like a bug to me ... only the TH is removed. I thought perhaps I should change the second rows TDs to THs as well, but that makes things even worse. I can't understand what happens there, but it looks crazy. I see hidden columns, some columns that should be visible are hidden and so on.
Best regards,
Jens Gutzeit
I have 2 rows in thead (no colspan stuff, just the TH-label and a TD with a form to filter and some other cool things). I finally implememted the show/hide stuff and hit a problem that looks like a bug to me ... only the TH is removed. I thought perhaps I should change the second rows TDs to THs as well, but that makes things even worse. I can't understand what happens there, but it looks crazy. I see hidden columns, some columns that should be visible are hidden and so on.
Best regards,
Jens Gutzeit
This discussion has been closed.
Replies
While the column index send for iSortCol takes the visibility into account, sSearch_X=value does not. Since there is no way on the server-side to check for visibility, filtering and show/hide can't be used together because the received column-index could point to a different column.
Edit: Arr, sorry, that is not an issue in datatables itself, it's just a issue when one is using the code from your example page.
Best regards,
Jens
Regarding your original post, this thread covers that situation: http://datatables.net/forums/comments.php?DiscussionID=883&page=1#Item_2 . Basically it's not currently supported in DataTables.
Regards,
Allan