need only close button on Rad window header

3 posts, 0 answers
  1. Billu
    Billu avatar
    9 posts
    Member since:
    Aug 2007

    Posted 30 Jun 2008 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Jun 2008 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Jun 2008 Link to this post

    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
Back to Top