I'm trying to show the intervals between two hours.
Before with the web forms version I used:
protected override void OnBeforeTimeHeaderRender(BeforeTimeHeaderRenderArgs e)
{
int cells = 60 / CellDuration;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<table style='width:100%' cellpadding='0' cellspacing='0'>");
for (int i = 0; i < cells; i++)
{
sb.Append("<tr><td>");
sb.Append("<div style='height:");
sb.Append(30 - 1);
sb.Append("px;border-bottom:1px solid");
sb.Append(";'>");
sb.Append(e.Hour);
sb.Append(":");
sb.Append((i * CellDuration).ToString("00"));
sb.Append("</div>");
sb.Append("</td></tr>");
}
sb.Append("</table>");
e.InnerHtml = sb.ToString();
}
How to do it in the MVC version?
Thanks
Johnny