@{Html.Telerik().Window()
.Name("Popup")
.Modal(true)
.Visible(false)
.ClientEvents(events => events
.OnRefresh("resizeOnRefresh")
.OnResize("centerOnResize"))
.Render();
}
Sunday, December 18, 2011
Re-size and re-center Telerik MVC modal window after ajaxRequest
Telerik MVC modal window can auto-size to fit its initial content. After ajaxRequest, however, the window size stays the same, not adjusting to the new content. Here is how to re-size and re-center a modal window after ajaxRequest. The trick is to remove css "width" and "height" properties from the .t-window-content div.
Labels:
Telerik
| Reactions: |
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment