Skip to content

Instantly share code, notes, and snippets.

@dgg
Last active December 22, 2015 00:19
Show Gist options
  • Select an option

  • Save dgg/6388731 to your computer and use it in GitHub Desktop.

Select an option

Save dgg/6388731 to your computer and use it in GitHub Desktop.
Model binding dynamic collections. IV DisplayTemplate for DeletableThing
@model DgonDotNet.Blog.Samples.DynamicCollections.Models.DeletableThing
<tr>
<td>
@Html.HiddenFor(m => m.ClientDeleted, new { @class = "data-delete" })
@Html.HiddenFor(m => m.Number)
@Html.DisplayFor(m => m.Number)
</td>
<td>
@Html.HiddenFor(m => m.Text)
@Html.DisplayFor(m => m.Text)
</td>
<td>
@Html.DisplayFor(m => m.IsEven)
</td>
<td>
<span class="trash"></span>
</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment