I copied the js and styles folders from Program Files (x86)\Progress\Telerik UI for ASP.NET Core R2 2018 to the \wwwroot\lib\kendo-ui\ folder on my project, cleaned my project, recompiled and ran the project and still get the same error. I then opened it in the browser being used by Visual Studio and also Chrome to verify it wasn't a browser issue, but the null still shows up.
Below is the code for the grid - Please advise.
<
div
id
=
"divDataGrid"
>
@(Html.Kendo().Grid<
FDMDCT.Models.ScadaErrorModel
>
()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.ID).Hidden(false);
columns.Bound(c => c.ScadaDailyID).Hidden(false);
columns.Bound(c => c.Bwp_Userid).Hidden(false);
columns.Bound(c => c.Bwp_region).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Region").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal;" });
columns.Bound(c => c.Bwp_Area).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Area").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal;font-weight:700;" });
columns.Bound(c => c.Fdm_Scada_Link).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Scada Link").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal;" });
columns.Bound(c => c.Assetnum).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Asset").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal;" });
columns.Bound(c => c.Asset_Description).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Asset Description").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal;" });
columns.Bound(c => c.Reading_date).Format("{0:MM/dd/yyyy}").Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Reading Date").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" });
columns.Bound(c => c.Error_type).Filterable(ftb => ftb.Multi(true).CheckAll(true)).Title("Error Type").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" });
columns.Bound(c => c.Comments).Width(300).ClientTemplate("#=Comments#<
span
data-valmsg-for
=
'Comments'
></
span
>");
//change the column below to a checkbox
//columns.Bound(c => c.ErrorCorrected).ClientTemplate("<
input
type
=
'checkbox'
disabled
=
'true'
value
=
'#= errorCorrected #'
" + " # if (errorCorrected) { #" + "
checked
=
'checked'
" + "# } #" + "/>" );
columns.Bound(c => c.Operating_hrs).Title("Operating Hours").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Operating_hrs#<
span
data-valmsg-for
=
'Operating_hrs'
></
span
>");
columns.Bound(c => c.Ttl_downtime_hrs).Title("Downtime Hours").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Ttl_downtime_hrs#<
span
data-valmsg-for
=
'Ttl_downtime_hrs'
></
span
>");
columns.Bound(c => c.Oil_to_comp_cyl).Title("Compressor Cylinder Oil Usage (gal)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Oil_to_comp_cyl#<
span
data-valmsg-for
=
'Oil_to_comp_cyl'
></
span
>");
columns.Bound(c => c.Oil_to_cc_hand).Title("Crankcase Oil Usage (gal)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Oil_to_cc_hand#<
span
data-valmsg-for
=
'Oil_to_cc_hand'
></
span
>");
columns.Bound(c => c.Oil_new_cc_ren).Title("Crankcase Auto Oil Usage (gal)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Oil_new_cc_ren#<
span
data-valmsg-for
=
'Oil_new_cc_ren'
></
span
>");
columns.Bound(c => c.Oil_to_pwr_cyl).Title("Power Cylinder Oil Usage (gal)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Oil_to_pwr_cyl#<
span
data-valmsg-for
=
'Oil_to_pwr_cyl'
></
span
>");
columns.Bound(c => c.Electricity_used).Title("Electricity Used (Kwh)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Electricity_used#<
span
data-valmsg-for
=
'Electricity_used'
></
span
>");
columns.Bound(c => c.Fuel_consumed).Title("Fuel Consumed (mcf)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Fuel_consumed#<
span
data-valmsg-for
=
'Fuel_consumed'
></
span
>");
columns.Bound(c => c.Hrspwr_hrs).Title("Horsepower Hours").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Hrspwr_hrs#<
span
data-valmsg-for
=
'Hrspwr_hrs'
></
span
>");
columns.Bound(c => c.Avg_unit_rpm).Title("RPM - Average Engine Speed").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Avg_unit_rpm#<
span
data-valmsg-for
=
'Avg_unit_rpm'
></
span
>");
columns.Bound(c => c.Engine_starts_attempts).Title("Start Attempts").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Engine_starts_attempts#<
span
data-valmsg-for
=
'Engine_starts_attempts'
></
span
>");
columns.Bound(c => c.Engine_starts_success).Title("Start Successes").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Engine_starts_success#<
span
data-valmsg-for
=
'Engine_starts_success'
></
span
>");
columns.Bound(c => c.Engine_starts_failed).Title("Start Failures").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Engine_starts_failed#<
span
data-valmsg-for
=
'Engine_starts_failed'
></
span
>");
columns.Bound(c => c.Startup_duration).Title("Startup Duration (min)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Startup_duration#<
span
data-valmsg-for
=
'Startup_duration'
></
span
>");
columns.Bound(c => c.Thruput_mmcf).Title("Throughput / Capacity (mmscf)").HeaderHtmlAttributes(new { style = "overflow: visible; white-space: normal" }).ClientTemplate("#=Thruput_mmcf#<
span
data-valmsg-for
=
'Thruput_mmcf'
></
span
>");
})
.ToolBar(toolbar =>
{
toolbar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Sortable()
.Filterable()
.Pageable()
.AutoBind(true)
.Scrollable(scrollable => scrollable.Height(700))
.Reorderable(reorderable => reorderable.Columns(true))
.Resizable(resizable => resizable.Columns(true))
.ColumnResizeHandleWidth(20)
.ColumnMenu()
.Navigatable()
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.PageSize(20)
.ServerOperation(false)
.Events(events => events
.Error("error_handler")
.RequestEnd("requestEnd")
.Sync("validateMe")
)
.Model(model =>
{
//set the fields to non-editable here
model.Id(p => p.ID);
model.Field(p => p.ID).Editable(false);
model.Field(p => p.Fdm_Scada_Link).Editable(false);
model.Field(p => p.Bwp_Userid).Editable(false);
model.Field(p => p.ScadaDailyID).Editable(false);
model.Field(p => p.Bwp_region).Editable(false);
model.Field(p => p.Bwp_Area).Editable(false);
model.Field(p => p.Assetnum).Editable(false);
model.Field(p => p.Asset_Description).Editable(false);
model.Field(p => p.Reading_date).Editable(false);
model.Field(p => p.Error_type).Editable(false);
})
.Read(read => read.Action("Fill_Grid", "ScadaErrors").Data("sendAntiForgery")
.Data("getSearchParameters"))
.Update(update => update.Action("Update_Grid", "ScadaErrors").Data("sendAntiForgery"))
)
)