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

need only close button on Rad window header

2 Answers 299 Views
Window
This is a migrated thread and some comments may be shown as answers.
Billu
Top achievements
Rank 1
Billu asked on 30 Jun 2008, 07:03 AM
Hi,

1)      I need only close button on Rad window header (no maximize, minimise, pin on/off button). How to set that through javascript?


Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2008, 12:47 PM
Hello Billu,

I'm not sure of  setting that using JavaScript but you can get this done by setting the Behavior property of the RadWindow to Close on the aspx side as shown below in the code snippet.

ASPX:
 <rad:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="true"
      <Windows> 
      <rad:RadWindow Behavior="Close" /> 
      </Windows>        
 </rad:RadWindowManager> 

Hope this helps.

Thanks
Shinu.

0
Georgi Tunev
Telerik team
answered on 30 Jun 2008, 01:55 PM
Hi Shinu,

This functionality is controlled by the Behaviors property of the RadWindow control. For example if you want to have only the close button in the toolbar, but you also need this window to be moveable and resizeable, you need to set Behaviors="Close,Move,Resize".
If you need to set this property on the client:

oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Close);

More information on the subject is available in the documentation.

Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Billu
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or