joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
75 stars 56 forks source link

Bootstrap table classes #118

Open gormus opened 7 years ago

gormus commented 7 years ago

The grids are rendered with bootstrap table classes:

<table id="MVCGridTable_DirectoryGridDepartment" class="table table-striped table-bordered">
...
</table>

I need to create different grids in the same project, and I want to use different class names on each one.

How can I alter table classes?

Thanks

raynebair commented 7 years ago

I'd like the table to use the table-condensed class. I can add it in the ready function, but it loses it when I page. Where do I set it so that it stays when I page the grid?

NightWatchman commented 6 years ago

I've another vote for being able to specify CSS classes that are then rendered in the table element. Overall the support is quite good with the ability to specify custom classes for rows and columns dynamically based on row data, but I'm surprised I haven't found any easy way to just add a class to the table itself.