Currently I am receiving an error when accessing a Kendo Window of a partial page with a Grid inside:
SCRIPT5022: DOM Exception: NOT_FOUND_ERR (8)
kendo.web.min.js, line 16 character 31193
l.table[0].replaceChild(r,l.tbody[0])
My window Kendo window code is as follows:
@(Html.Kendo().Window()
.Name("mbWindow")
.Width(630)
.Height(530)
.Title("Add Element")
.Content(
@<text>
@Html.Partial("../Controller/PartialPage")
</text>)
.Draggable()
.Visible(false))
My partial page is as follows:
@{
ViewBag.Title = "Elements";
}
<h2>
Elements</h2>
<div id="mxBWindow">
@(Html.Kendo().Grid<Model.MB>()
.Name("MBGrid")
.HtmlAttributes(new { style = "height:460px;" })
.Columns(columns =>
{
columns.Bound(p => p.ID);
columns.Bound(p => p.Amount);
columns.Bound(p => p.ParentID);
columns.Command(command => command.Destroy()).Width(110);
})
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
//.Pageable()
//.Sortable()
//.Selectable(s => s.Enabled(true))
//.Navigatable(n => n.Enabled(true))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(false)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.ID))
.Create("Editing_Create", "Grid")
.Read("Editing_Read", "Grid")
.Update("Editing_Update", "Grid")
.Destroy("Editing_Destroy", "Grid")
)
.Events(ev => ev.SaveChanges("submitElements"))
)
</div>
I have noticed that when I remove this Grid from the partial page, the window gives me no errors. Both pages, however, when accessed individually give me no errors. Yet when I add the Grid back in with the Kendo Window, I get the DOM Exception.
Page w/Grid - No Errors
Page w/Window - No Errors
Page w/Window(w/Grid Inside) - Error/DOM Exception
Could someone please point me out what might be causing this error?
SCRIPT5022: DOM Exception: NOT_FOUND_ERR (8)
kendo.web.min.js, line 16 character 31193
l.table[0].replaceChild(r,l.tbody[0])
My window Kendo window code is as follows:
@(Html.Kendo().Window()
.Name("mbWindow")
.Width(630)
.Height(530)
.Title("Add Element")
.Content(
@<text>
@Html.Partial("../Controller/PartialPage")
</text>)
.Draggable()
.Visible(false))
My partial page is as follows:
@{
ViewBag.Title = "Elements";
}
<h2>
Elements</h2>
<div id="mxBWindow">
@(Html.Kendo().Grid<Model.MB>()
.Name("MBGrid")
.HtmlAttributes(new { style = "height:460px;" })
.Columns(columns =>
{
columns.Bound(p => p.ID);
columns.Bound(p => p.Amount);
columns.Bound(p => p.ParentID);
columns.Command(command => command.Destroy()).Width(110);
})
.ToolBar(toolbar =>
{
toolbar.Create();
toolbar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
//.Pageable()
//.Sortable()
//.Selectable(s => s.Enabled(true))
//.Navigatable(n => n.Enabled(true))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(false)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.ID))
.Create("Editing_Create", "Grid")
.Read("Editing_Read", "Grid")
.Update("Editing_Update", "Grid")
.Destroy("Editing_Destroy", "Grid")
)
.Events(ev => ev.SaveChanges("submitElements"))
)
</div>
I have noticed that when I remove this Grid from the partial page, the window gives me no errors. Both pages, however, when accessed individually give me no errors. Yet when I add the Grid back in with the Kendo Window, I get the DOM Exception.
Page w/Grid - No Errors
Page w/Window - No Errors
Page w/Window(w/Grid Inside) - Error/DOM Exception
Could someone please point me out what might be causing this error?