<div id="objConfirmationOverlay" class="clsOverlay"></div>
<div id="objConfirmationDialog" class="clsDialog clsConfirmationPosition">
<table style="width: 100%; border: 0px;" cellpadding="3" cellspacing="0">
<td class="clsDialogTitle">Details</td>
<td class="clsDialogTitle clsDialogRight">
<img src="Images\CloseButton.png" style="visible:false;" onclick="HideConfirmDialog('A');return false;" id="btnClose" alt="Close" />
@model IEnumerable<HelloWorldMvcApp.PowerForecast>
var grid = new WebGrid(Model, canPage: false, rowsPerPage: 30, canSort: false,
selectionFieldName: "selectedRow", ajaxUpdateContainerId: "gridContent");
@grid.GetHtml(tableStyle: "webgrid-table",
headerStyle: "webgrid-header",
footerStyle: "webgrid-footer",
alternatingRowStyle: "webgrid-alternating-row",
selectedRowStyle: "webgrid-selected-row",
rowStyle: "webgrid-row-style",
htmlAttributes: new { id = "dgdForecast" },
grid.Column("Date", " Date", style: "clsGridCell clsDateColumn", format: (item) =>
return Html.Raw(FormatCell(item.Date_Highlight.ToString(), item.ForeColor.ToString(), item.Date.ToString()));
grid.Column("Hour", "Hour Ending", style: "clsGridCell clsHourColumn", format: (item) =>
return Html.Raw(FormatCell(item.Date_Highlight.ToString(), item.ForeColor.ToString(), item.Hour.ToString()));
grid.Column("SetPoint", "Set Point", style: "clsNucorCellColor", format: (item) =>
return Html.Raw(FormatCell(item.Date_Highlight.ToString(), item.ForeColor.ToString(), item.SetPoint.ToString()));
grid.Column("", "", style: "clsNucorCellColor", format: (item) =>
return Html.Raw("<input type='button' value='Edit' onclick = alert(" + item.ForeColor.ToString() + ");>");
public string FormatCell(String sHighlight, String sForeColor, String sValue)
String sId = "", sStyle = "";
sId = "id = highlight_row ";
sStyle = "style='font-weight: bold; color: " + sForeColor + "'";
return "<span " + sId + sStyle + ">" + sValue + "</span>";
border-collapse: collapse;
/*border: solid 1px #545F5F;*/
background-color: #e6eeee;
background-color: #fdfeff;
background-color: #e1ecf2;
filter: alpha(opacity=30);
background-color: #ffffff;
border: 3px solid #A0B4BC;
border-bottom: solid 2px #A0B4BC;
background-color: #A0B4BC;
$('.ImgAddition').on('click', function (e) {
$('#facilitygrid').hide();
var bookId = $(this).prop('id');