Remove title bar controls

4 posts, 1 answers
  1. Teena
    Teena avatar
    16 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2013 Link to this post

    Hi,
    i am displaying a radwindow in my page and i just want to display the close button. All other buttons i need to hide. please help.

    Thanks,
    Teena
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Feb 2013 Link to this post

    Hi,

    Try setting the Behaviors property of the RadWindow to Close so that the close button alone will be shown and other buttons are removed from the RadWindow title bar.

    ASPX:
    <telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" Title="Telerik" OpenerElementID="RadButton1"
        Behaviors="Close">
    </telerik:RadWindow>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pratik
    Pratik avatar
    5 posts
    Member since:
    May 2016

    Posted 29 Jun Link to this post

    Hi,

     

    I want to hide title bar buttons e.g Maximized,Minimized,Refreshed and Pinned.. also the background coming for radwindow.. i'm using javascript to open window also calling parent window from javascript

     

    P.S attached file

     

     

    function ShowWindow(url, title) {
             debugger;
               var oWnd = window.parent.radopen(url, title);
               oWnd.setSize(850, 450);
             oWnd.set_visibleStatusbar(false);
             oWnd.SetTitle(title);
             oWnd.get_enableShadow();
            // oWnd.add_close(OnClientClose)
             oWnd.set_modal(true);
             oWnd.set_visibleTitlebar(true);
             oWnd.center();
     
         }

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 30 Jun Link to this post

    Hello Pratik,

    You should use the set_behaviors() method and list the commands/behaviors you want available: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/client-side-programming/radwindow-object.

    As for the appearance issue—it is most likely caused by mixed render modes or global CSS rules: http://docs.telerik.com/devtools/aspnet-ajax/general-information/troubleshooting/skins-troubleshooting#incorrect-or-distorted-appearance.

    Regards,

    Marin Bratanov
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top