Hi Simon,
Thanks for your update.
We have analyzed your previously provided project further and suspect that the script section are not rendered properly in it, so that it might cause such issue(The custom window is not opened). Please make the below changes as highlighted in your project.
In _Layout.cshtml, we need to render the script section. The code block is as follows:
<code>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/Scripts/jquery.easing.1.3.js")
@Scripts.Render("~/Scripts/jsrender.min.js")
@Scripts.Render("~/Scripts/ej/web/ej.web.all.min.js")
@RenderSection("scripts", required: false)
@RenderSection("ScriptSection", required: false) // add this scriptSection
@Html.EJ().ScriptManager()
</code>
In View page, need to define the script section. The code block is as follows:
<code>
@section ScriptSection{
<script>
var Owners = [
{ text: "Nancy", id: 1, groupId: 1, color: "#ffaa00" },
{ text: "Steven", id: 3, groupId: 2, color: "#f8a398" },
{ text: "Michael", id: 5, groupId: 1, color: "#7499e1" }
];
-------------------
function cancel() {
clearFields();
$("#customWindow").ejDialog("close");
}
</script>
}
</code>
Kindly try out our above suggestion and let us know, if it solves your reported problem and also let us know, if you need any further assistance on this.
Regards,
Sellakumar K