<label>Summary</label>@Html.CheckBox("checkBoxSummary", true)
@foreach (MyDetailData detail in @Model.DetailRows){
<label> @detail.Name</label>@Html.CheckBox("checkBoxDetail" + @detail.Name, true)
}
My question is, how do I use that within my splitter pane content? I can't figure out the syntax for the foreach statement.
Here is what I am trying to do:
.Panes(innerPanes =>
{
innerPanes.Add()
.Resizable(true)
.Size("35px")
.MinSize("35px")
.Content(
@"<table style='width:100%; border-style:none;'>" +
@"<tr>" +
@"<td style='border-style:none; text-align:left;'>" +
@"<label>Summary</label>" +
@Html.CheckBox("checkBoxSummary", true).ToHtmlString() +
I WANT TO ADD THE FOREACH HERE
@"</td>" +
@"</tr>" +
@"</table>"
);