This is a migrated thread and some comments may be shown as answers.
RadWindow : Iniital Behaviors
1 Answer 38 Views
This is a migrated thread and some comments may be shown as answers.
Raja
Top achievements
Rank 1
Raja asked on 11 Jun 2009, 05:13 AM
Hi,

While opening a RadWindiow, I initialize their behavior (say have just Close and Maximize button). But when the window is shown, the position of the buttons are not proper ie buttons are not appearing to the extreme right of the title bar. When I resize the window, they are positioned properly ie buttons are aligned to the right. Following is the code I am using to show the window

        function openPopup() {
            var oWnd = radopen("http://www.google.com", null);
            oWnd.setSize(1000, 1000);
            oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close);
        }
I am currently using "Hay" skin (able to see the same behavior with Default skin also). Product version of the assembly is 2009.01.0402.35.

Regards,

Raja


1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 15 Jun 2009, 03:24 PM
Hello Raja,

You can easily fix that issue by calling the show() function of the newly opened RadWindow object. Your code should looks like :

<script type="text/javascript"
    function openWindow() 
    { 
        var oWnd = radopen("http://www.google.com"null); 
        oWnd.setSize(1000, 1000); 
        oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close); 
        oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close); 
        oWnd.show(); 
    } 
</script> 

I hope this helps.

Kind regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
Raja
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or