How can I put personal combobox in header to filter my dattatable?
How can I put personal combobox in header to filter my dattatable?
turbina2011@gmail.com
Posts: 1Questions: 1Answers: 0
My problem is I have my datatable with only 1 column and i need to select to order by order fields, the problem is I put all the fields in one column. Can I put a personal dropbox with my own fields order?
Thank you
This discussion has been closed.
Answers
I'm not clear on what you are trying to do but this example shows how to put a select in the header of the table.
http://live.datatables.net/saqozowe/70/edit
Note that is uses two
thead
tags; one for sorting and the other for the drop down. This is accomplished by usingorderCellsTop
. This is similar to this example for select filtering. You can build the select options however you need.Kevin