Datatables and bootstrap
Datatables and bootstrap
dcnaren
Posts: 3Questions: 2Answers: 0
Can anyone direct me to help/examples on the following please
- Datatable used along with bootStrap style. How to use col-- style for columns. The data is being loaded using JSON array of objects.
- In the same table, using Textbox for column level search. I am able to search, as soon as I use textbox with form-control style all column with are equally sized.
regards
This discussion has been closed.
Answers
Is that a Bootstrap class? Use
columns.className
if so.For 2 we'd need a link to the page showing the issue.
Allan
Thanks the columns.className works. But when I include <input> textbox in header, the width has a problem. Is there no file upload in this form? I am pasting the sample code here
You probably need to include some CSS to specify what width you want the input to take. Without a test case there isn't much help I can offer there though.
Not quite sure why you are wanting to put Bootstrap's col- styles on table elements - the col- styles are for Bootstrap's grid system: http://getbootstrap.com/css/#grid
Perhaps a static mockup of what you want the end result to look like would help in understanding better what the goal is here.