This example shows the client-side events supported by Telerik Window for ASP.NET MVC.
The window has the following events:
You can subscribe to each of the events in the following ways:
<%= Html.Telerik().Window()
.Name("Window")
.ClientEvents(events => events
.OnLoad("OnLoad")
)
%>
<script type="text/javascript">
function OnLoad(e) {
// your code
}
</script>
<% Html.Telerik().Window()
.Name("Window")
.ClientEvents(events => events
.OnLoad(() => {%> function(e) { // your code } <%})
.Render();
%>
<%= Html.Telerik().Window().Name("Window") %>
<script type="text/javascript">
$(document).ready(function() {
$('#Window').bind('open', function(e) { // your code });
});
</script>