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

Remove title bar controls

3 Answers 363 Views
Window
This is a migrated thread and some comments may be shown as answers.
Teena
Top achievements
Rank 1
Teena asked on 01 Mar 2013, 03:15 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 01 Mar 2013, 03:36 AM
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.
0
Pratik
Top achievements
Rank 1
answered on 30 Jun 2016, 04:07 AM

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();
 
     }

0
Marin Bratanov
Telerik team
answered on 30 Jun 2016, 07:25 AM

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.
Tags
Window
Asked by
Teena
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Pratik
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or