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

[Solved] Disallow resizing and moving

1 Answer 184 Views
Window
This is a migrated thread and some comments may be shown as answers.
fightclub777
Top achievements
Rank 1
fightclub777 asked on 01 May 2008, 09:53 PM
Is it possible to disallow the reize or movement of the window?  I have a page in which a radWindow displays content from another website.  I'd like this to be integrated in my current design. I've already set the OffsetElementID, width and height to fix the position, but I want to "lock" it so that it can't be resized or moved.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 May 2008, 04:03 PM
Hi fightclub777,

The Behavior property sets the behavior of the RadWindow object - whether the RadWidow will be resizable, or have expand/collapse commands, closed command, etc.

Below, you will find a list of the values the Behaviour property takes. They can be combined so you can have any combination of buttons in the window's bar:

None - No behavior is specified. 
Resize - The object can be resized. 
Minimize - The object can be minimized. 
Close - The object can be closed. 
Pin - The object can be pinned. 
Maximize - The object can be maximized. 
Move - The object can be moved. 
Reload - The object will have a reload button. 
Default - Default object behavior: all together.

For example, if you do not want to have the Pin and Reload buttons but you need the Minimize, Maximize, Close and Resize ones, you can set the Behavior="Minimize, Maximize, Close, Resize"

You can also set the Behavior property from the codebehind:

           radWindow.Behavior = RadWindowBehaviorFlags.Maximize | RadWindowBehaviorFlags.Minimize |
                                            RadWindowBehaviorFlags.Close |  RadWindowBehaviorFlags.Resize;

Greetings,

Svetlina
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
fightclub777
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or