add bootstrap dropdown inside datatable

add bootstrap dropdown inside datatable

pjogpjog Posts: 9Questions: 0Answers: 0
edited June 2013 in General
I want to dynamically add a dropdown to my last column. My table will be filled using some serverside data and I need to decide an action on it from the dropdown menu.
What would be the best way to achieve this. I am using datatable with bootstrap.

Replies

  • synlagsynlag Posts: 3Questions: 0Answers: 0
    Hi,

    I tried it with the build-in dropdown from bootstrap for a second row with colspan over all cols, but datatables does not work with it. If the tablerow is loaded after datatables is initialised it might work.
    The solution I found lives her
    http://www.datatables.net/blog/Drill-down_rows

    Greets
    Ron
  • pjogpjog Posts: 9Questions: 0Answers: 0
    I am looking for a dropdown on the last column something like this: http://stackoverflow.com/questions/17198988/dynamically-add-bootstrap-dropdown-in-table
  • synlagsynlag Posts: 3Questions: 0Answers: 0
    Well you could use the twitter bootstrap build in form with a select field for this :)
This discussion has been closed.