fnSetColumnVis with multiple rows in thead

fnSetColumnVis with multiple rows in thead

Jens GutzeitJens Gutzeit Posts: 22Questions: 0Answers: 0
edited January 2010 in General
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

Replies

  • Jens GutzeitJens Gutzeit Posts: 22Questions: 0Answers: 0
    edited January 2010
    And another one ... it's been a bad day :D
    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
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi 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
  • Jens GutzeitJens Gutzeit Posts: 22Questions: 0Answers: 0
    Allan, thank you. I'll probably come up with a patch some time, but for now, I'm just merging my two rows into one.
This discussion has been closed.