How to increase the Datatable size width
How to increase the Datatable size width
Achandrashekara
Posts: 2Questions: 1Answers: 0
Hi All,
I have more than 20 columns in my table i want to increase the size of the width or it must fit to the width of the browser. Currently it fit to half of the size of the browser width. you can see in the below pic.
Your help is appreciated.
Thanks,
Chandru
This discussion has been closed.
Answers
Hi @Achandrashekara ,
If you add the class
width="100%"
to the table, as in the live examples, it will fill the container that the table is in.Cheers,
Colin
Hi Colin,
Thanks for your reply,
But its not working in my application.
For your reference i have attached the code.
Thanks For your help. I hope i am not giving any trouble to you.
Regards,
Chandru
Thanks for the file, however it is a partial view and doesn't include the CSS, so I can't say why the table is only taking up a proportion of the width available. Most likely there is a container element which has a max-width assigned to it, but we would need a link to a page showing the issue to be able to help with that.
Thanks,
Allan