VS 2017 Ent
Syncfusion version: 16.14.0.24
JQuery Version: 3.3.1
Edge/Explorer 11/Chrome
Errors:
Unable to get property '2' of undefined or null reference.
ejDateTimePicker: methods/properties can be accessed only after plugin creation
Error: ejDateTimePicker: methods/properties can be accessed only after plugin creation
at t.throwError (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:29700)
at n.fn[f] (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:23458)
at t.gridFeatures.common._processBindings (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:3011260)
at t.gridFeatures.edit.startEdit (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:3180816)
at t.gridFeatures.edit._toolbarOperation (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:3230455)
at t.gridFeatures.edit._toolBarClick (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:3227567)
at t.widgetBase._trigger (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:13531)
at _onItemClick (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:1809493)
at Anonymous function (http://localhost:9193/Scripts/ej/web/ej.web.all.min.js:10:27567)
at jQuery.event.dispatch (http://localhost:9193/Scripts/jquery-3.3.1.js:5182:6)
Steps to reproduce:
1. Enter View
2. Select Edit Icon
Error: Unable to get property '2' of undefined or null reference
3. Select Close or Save button:
Error: ejDateTimePicker: methods/properties can be accessed only after plugin creation
Grid Render Code:
@(Html.EJ().Grid<MCSI.NMCFISReports.Models.SpecialEvent>
("FlatGrid")
.Datasource(ds => ds.Json((IEnumerable<MCSI.NMCFISReports.Models.SpecialEvent>
)Model.SpecialEvents)
.CrudURL("SpecialEvents/CrudUrl").Adaptor(AdaptorType.RemoteSaveAdaptor))
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Dialog); })
.AllowSorting()
.AllowPaging()
.IsResponsive()
.ToolbarSettings(toolBar => toolBar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.ExcelExport);
//items.AddTool(ToolBarItems.WordExport);
//items.AddTool(ToolBarItems.PdfExport);
items.AddTool(ToolBarItems.Add);
items.AddTool(ToolBarItems.Edit);
items.AddTool(ToolBarItems.Delete);
}))
.Mappers(map => map.ExportToExcelAction("SpecialEvents/ExportToExcelAsync")
.ExportToPdfAction("SpecialEvents/ExportToPdfAsync")
.ExportToWordAction("SpecialEvents/ExportToWordAsync"))
.Columns(col =>
{
col.Field(p => p.Id).HeaderText("ID").TextAlign(TextAlign.Left).IsPrimaryKey(true).Add();
col.Field(p => p.EventName).HeaderText("EventName").TextAlign(TextAlign.Left).Add();
col.Field(p => p.EventDate).Format("{0:d}").HeaderText("EventDate").EditType(EditingType.DateTimePicker).Add();
col.Field(p => p.AdmissionPrice).Format("{0:c").HeaderText("Admission Price").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Attendance).Format("{0:n}").HeaderText("Attendance").TextAlign(TextAlign.Right).Add();
col.Field(p => p.EventLocation).HeaderText("Event Location").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Description).HeaderText("Description").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Street).HeaderText("Street").TextAlign(TextAlign.Left).Add();
col.Field(p => p.City).HeaderText("City").TextAlign(TextAlign.Left).Add();
col.Field(p => p.State).HeaderText("State").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Zip).HeaderText("Zip").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Sponsors).HeaderText("Sponsors").TextAlign(TextAlign.Left).Add();
col.Field(p => p.AdmissionFeesReceived).Format("{0:c").HeaderText("Admission Fees Received").TextAlign(TextAlign.Left).Add();
col.Field(p => p.UnidentifiableAnonymousContributions).Format("{0:c").HeaderText("Unidentifiable Anonymous Contributions").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Expenditures).Format("{0:c").HeaderText("Expenditures").TextAlign(TextAlign.Left).Add();
})
.ClientSideEvents(eve => { eve.ActionComplete("complete"); })
)