asp.net mvc 3 - Adding image to MVC 3 Web grid column header -


recently using web grid of mvc 3 . in 1 of columns need display image next header text . eg: + possible mvc web grid.

thx

currently not possible unless use css (provide column header style , set background image in css) or javascript.

example css3:

@grid.gethtml(headerstyle: "header", columns: grid.columns(     grid.column("id"),     grid.column("title") )) 

and in order set background image in second column header using css3:

<style type="text/css"> .header th:nth-child(2) {     background-image: url(foo.png); } </style> 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -