Dropdowns in thead?

Dropdowns in thead?

quatschquatsch Posts: 2Questions: 0Answers: 0
edited August 2011 in General
Hello everyone,

I managed to get the dropdown selectors at the top of my table by 2 different solutions:

1) The first set of td's in my tbody's first tr have a special id on which the code creates the dropdowns ==> they disappear when I select an option.
2) I put an extra tr in the thead. ==> this works about fine, except that when I click on my select the order of the table changes.

I can't really find out in the code what makes the order of the tables content change. Solution number 2 can be seen here:
http://idoa.fr/joomla15/index.php?option=com_content&view=category&layout=formations&id=2&Itemid=12

Anyone has any ideas to my problem?

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    there's an initialization variable called bSortCellsTop (http://www.datatables.net/ref) that tells DataTables to use the top TH row as the row to sort when clicked. Try that and see if that helps.
  • quatschquatsch Posts: 2Questions: 0Answers: 0
    @fbas! That is just exactly what I was looking for! Thank you so much!
This discussion has been closed.