How to open radwindow in maximize state using javacript

I am using Telerik RadWindowManager to open a few URL in JavaScript window.radopen command. I have to open the window in mazimized state and provide resizing options as well. Window's open a URL inside an iframe.

Solution
<script> 
function OpenRadWindow() {
    //Get Radwindow handle
    var wnd= window.radopen("http://www.google.com", "AdvancedForm");
    //Set radwindow title
    wnd.set_title('Open Rad Window');
    //Add various resizing options to radwindow handle
    wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Minimize + Telerik.Web.UI.WindowBehaviors.Close);
    //Set default radwindow position
    wnd.moveTo(0, 0);
    //Set default radwindow state
    wnd.maximize();
}
</script>
Subscribe for our monthly newsletter for updated articles and useful code scripts.

Share It

comments powered by Disqus
Chat With Us Close
Leave Message