I am working on a site that requires responsive design, such that when the site is being accessed from a small mobile device, I can hide some of the columns due to the smaller real estate available.
The typical method to doing this is using media queries in CSS. As such, I have applied some classes to the columns in my MVC view like so:
columns.Bound("memberName").Title("columnTitle").HtmlAttributes(new {@class = "col-desktop"})
I can see in the resulting HTML page that the class is applied to the td tag, and not the col tag in the table. As such, when I set the visibility of the class to collapse the row header is still there. If I apply the class to the row header as well, then the column is not visible although the grid still seems like it leaves a space where the column would be.
What would be the best way to accomplish this?
The typical method to doing this is using media queries in CSS. As such, I have applied some classes to the columns in my MVC view like so:
columns.Bound("memberName").Title("columnTitle").HtmlAttributes(new {@class = "col-desktop"})
I can see in the resulting HTML page that the class is applied to the td tag, and not the col tag in the table. As such, when I set the visibility of the class to collapse the row header is still there. If I apply the class to the row header as well, then the column is not visible although the grid still seems like it leaves a space where the column would be.
What would be the best way to accomplish this?