Hi Krasimir,
Thank you for contacting Syncfusion support.
When unobtrusive Javascript is enabled serialized script to render the control it will be rendered along with the control’s valid tag and it will not be rendered in a separate script section. Hence during page load, this causes the script to render before the ej.web.all.min.js file and other dependent script file loads. In order to overcome the issue, we suggest you to move the script section before the renderbody or place it in the head section.
[_Layout.cshtml]
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
<script src="~/Scripts/ej/web/ej.web.all.min.js"></script>
<script src="~/Scripts/ej/common/ej.unobtrusive.min.js"></script>
@RenderSection("scripts", required: false)
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year - My ASP.NET Application</p>
</footer>
</div>
|
Regards,
Prince