Created
August 1, 2010 11:06
-
-
Save JeremySkinner/503229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.Grid(Model).Columns(column => { | |
column.Custom( | |
@<div> | |
<em>Hello there</em> | |
<strong>@item.Name</strong> | |
</div> | |
).Named("Custom Column"); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% Html.Grid(Model).Columns(column => { | |
column.For("My Custom Column").Action(x => { %> | |
<div> | |
<em>Hello there</em> | |
<strong><%= x.Name %></strong> | |
</div> | |
<% }); | |
}) | |
.Render(); | |
%> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment