This is a migrated thread and some comments may be shown as answers.

Initial Behaviour In rad Window

2 Answers 98 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 24 Jun 2009, 07:02 AM
hi

i am using Telerik Q1 2007 version .i have set the initial behavior=maximized .when window open ,its not showing in maximized Mode. when i have set the behavior=maximized. it shows the Maximized button.
In my project there are  some rad menus.  but problem is when i maximized the window. it cover up the whole area.and its overlapping the menus. is there any restriction to maximized the window. means it will show the window within particular area.

please give me the solutions ASAP.

Regards

rahul


2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Jun 2009, 09:46 AM
Hi Rahul Khinvasara,

I guess you want to restrict the radwindow from showing the maximized view and to set to particular size on maximizing. If so one suggestion would be setting the width and height explicitly when trying to maximize the window. You can try the following clientside code. Attach OnClientCommand event to RadWindow in order to resize the window to required size.

JavaScript:
 
<script type="text/ecmascript">  
function OnClientCommand(sender , args)  
{  
    if(args.get_commandName()== "Maximize" )  
    {  
        sender.set_width(1250);  
        sender.set_height(800);  
        sender.center();  
        args.set_cancel(true);  
    }  
}  
</script> 

Thanks,
Princy.
0
Svetlina Anati
Telerik team
answered on 29 Jun 2009, 07:35 AM
Hello Rahul,

Another, easier option is to set a restriction zone which occupies all teh desired space and set it for the RadWindow as explained below:

http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx


Greetings,
Svetlina
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.
Tags
Window
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or