I have a question about duplicate static window content script initialization.
Let's see an example:
I have a KendowUI Window with static content:
@Html.Kendo().Window().Name("Window").Content(@<
div
>
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
alert('It\'s me!');
});
</
script
>
</
div
>).Visible(false).Modal(true).Title("Test").Draggable(false)
So when I am opening page with provided code I see two alerts.
Please help me to find different solution except provided below:
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
alert('It\'s me!');
});
</
script
>
@Html.Kendo().Window().Name("Window").Content(@<
div
>
</
div
>).Visible(false).Modal(true).Title("Test").Draggable(false)
This is very important for me for initializing KendoUI controls inside of static window content.