This question is locked. New answers and comments are not allowed.
I have a page with this Window
@{ Html.Telerik().Window()
.Name("WindowGoogle")
.Draggable(true).HtmlAttributes(new Dictionary<string, object>() { { "class", "new_modal" } })
.Modal(true).Buttons(b => b.Close())
.Title(" ").LoadContentFrom("Index", "Google")
.ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose"))
.Width(702)
.Height(500)
.Visible(false)
.Render();}
When web site runs I get a this errors
onClose is not defined
When I removed the .ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose")) from Html.Telerik().Window(), the web site runs with out errors
if I change it with this also works
@{ Html.Telerik().Window()
.Name("WindowGoogle")
.Draggable(true).HtmlAttributes(new Dictionary<string, object>() { { "class", "new_modal" } })
.Modal(true).Buttons(b => b.Close())
.Title(" ").Content(@<text>@Html.Partial(MVC.Google.Views.)</text>)
.ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose"))
.Width(702)
.Height(500)
.Visible(false)
.Render();}
I want to know what is the problem using the ClientEvents when I used LoadContentFrom,
Any help please.
Thanks
@{ Html.Telerik().Window()
.Name("WindowGoogle")
.Draggable(true).HtmlAttributes(new Dictionary<string, object>() { { "class", "new_modal" } })
.Modal(true).Buttons(b => b.Close())
.Title(" ").LoadContentFrom("Index", "Google")
.ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose"))
.Width(702)
.Height(500)
.Visible(false)
.Render();}
When web site runs I get a this errors
onClose is not defined
...onClose:onClose, onActivate:onActivate, modal:true, contentUrl:'/Google/Index', ... |
onActivate is not defined
...onClose:onClose, onActivate:onActivate, modal:true, contentUrl:'/Google/Index', ... |
When I removed the .ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose")) from Html.Telerik().Window(), the web site runs with out errors
if I change it with this also works
@{ Html.Telerik().Window()
.Name("WindowGoogle")
.Draggable(true).HtmlAttributes(new Dictionary<string, object>() { { "class", "new_modal" } })
.Modal(true).Buttons(b => b.Close())
.Title(" ").Content(@<text>@Html.Partial(MVC.Google.Views.)</text>)
.ClientEvents(events =>events.OnActivate("onActivate").OnClose("onClose"))
.Width(702)
.Height(500)
.Visible(false)
.Render();}
I want to know what is the problem using the ClientEvents when I used LoadContentFrom,
Any help please.
Thanks