Reputation: 1099
Maybe I am blind, but I am not able to find how to change css class attributte for entire table generated by Grid.MVC.
Default css class settings:
<table class="table table-striped grid-table">
And I want to edit that. I have a workaround now in javasript. It works but there has to be some better solution at server side.
Upvotes: 2
Views: 14253
Reputation: 1099
I finnaly found that there is a shared view in ~/Views/Shared
(_Grid.cshtml
). There you can edit the whole grid.
Upvotes: 11
Reputation: 585
You don't want to assign styles on the server side. You always want that to happen on the client side. the classes you are referencing in your table tag are the reason why your table looks the way it does. If you want to change the look of the table you have three choices:
Edited to add:
According to the documentation for Grid.Mvc you can change your table styles in Content/Gridmvc.css
Upvotes: 0