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

Remove Statusbar on Window Launched from within Window?

10 Answers 334 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 24 Jun 2009, 01:44 AM
I've been having trouble removing the statusbar from a window launched from within a window. Is this possible to accomplish?

I've read that this cannot be done with client side code, which is how I am currently launching the window. I've tried to, instead, define a window in my masterpage, and then try to get a reference to it from my window, and launch it from there, but with no luck.

The code I am currently using to launch a window from a window is -

function LaunchSalesRequest() {  
        var parent = GetRadWindow().BrowserWindow;  
        var salesRequest = parent.radopen("SalesRequest.aspx""Sales Request For New Client");  
        salesRequest.set_width(720);  
        salesRequest.set_height(580);  
        salesRequest.center();  
        salesRequest.set_status(""); // would like to remove statusbar, not just blank it  
        salesRequest.set_title("Sales Request For New Client");  
        setTimeout(function() { attach.setActive(true); }, 0);  
    } 

10 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2009, 08:02 AM
Hello Peter,

Try the following line of code in order to hide the statusbar of radwindow and see whether it is working fine.

 
salesRequest.GetStatusbar().style.cssText = "display: none;"

Thanks,
Shinu
0
Georgi Tunev
Telerik team
answered on 24 Jun 2009, 11:21 AM
Hi Peter,

In your code, you have the following line:
 var salesRequest = parent.radopen("SalesRequest.aspx", "Sales Request For New Client");
Note that the second parameter of the radopen function is the RadWindow's name (e.g. its ID). You cannot have an ID of several words, it should be a single word like MyWindow, RadWIndow1 etc. I believe this is the reason why you cannot open the predefined RadWindow on the parent page.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Peter
Top achievements
Rank 1
answered on 25 Jun 2009, 11:16 PM
Shinu -  that code produced some interesting results. It got rid of the statusbar, but it also made the statusbar "see through". As in, where the statusbar used to be, I could see through to the parent page.

Georgi - I have now change my code to be a single word, but I don't know how that helps my situation. If i'm trying to reference a window defined on the parent page, I wouldn't be using the radopen function, would I? I'd be doing something like -

<telerik:RadWindow ID="rwWhatever" runat="server" Skin="Office2007" 
OpenerElementID="<%# rwWhatever.ClientID %>" Width="300" Height="150"   
VisibleStatusbar="false">  
</telerik:RadWindow> 
function LaunchSalesRequest() {  
   var parent = GetRadWindow().BrowserWindow;  
   parent.GetRadWindowManager().getWindowById("<%= rwWhatever.ClientID %>").show();  
0
Accepted
Georgi Tunev
Telerik team
answered on 26 Jun 2009, 11:22 AM
Hi Peter,

Thank you for the additional details. I prepared for you a small sample that shows how to call a RadWindow with no statusbar from within another RadWindow by using 2 different approaches. The first one is when you have a RadWindowManager on the parent page and the second one is used when a RadWindow is declared as a standalone control on the parent page.

I hope this helps.

All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Peter
Top achievements
Rank 1
answered on 29 Jun 2009, 01:43 AM
Thank you, Georgi. Your solution works perfectly.
0
yasir
Top achievements
Rank 1
answered on 24 Jan 2012, 02:52 PM
Use : VisibleStatusbar="false" that worked for me.

 <telerik:RadWindow ID="RadWindow3" runat="server" Modal="True" Width="600px" Height="700px"
                    NavigateUrl="ModelContracts.aspx" Behaviors="Resize, Move" OnClientClose="OnClientClose" VisibleStatusbar="false">
                </telerik:RadWindow>
0
Jeff
Top achievements
Rank 1
answered on 23 Oct 2012, 03:46 PM
VisibleStatusbar="false" does not work for me.

I get no status bar - but I get a blank area at the bottom of the RadWindow that I can use and I can't get rid of.

<telerik:RadWindow runat="server" Width="550px" Height="350px" VisibleStatusbar="false"
                ID="RadWindow1" Modal="true" Behaviors="Close,Move"
                OnClientClose="OnClientClose" >
</telerik:RadWindow>
0
Marin Bratanov
Telerik team
answered on 25 Oct 2012, 03:36 PM
Hi Jeff,

Which is the version of RadControls that you are using? Does this happen only with a certain browser (e.g. IE9) and not with others (e.g. FireFox)? Are you using the AutoSize property? I am asking this because there has been an issue with autosizing under IE9 where some space was added at the bottom and this has been fixed, so upgrading to the latest can resolve the case. I am attaching here a simple sample that works fine with me. Could you compare it with your actual setup and try to find the difference that are causing the problem?

Kind regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jeff
Top achievements
Rank 1
answered on 29 Oct 2012, 09:14 PM
Hello Marin,

Thank you for your response. I get this blank space in both Firefox and IE9. The only two I have tested on.

I have tried setting AutoSize to false and true - with no change for 'false' and triple more extra space for 'true'.

I have colored body, html and form areas and this blank space proves to be part of the html. I used your CSS styling setting for page height, width, zero padding/margin; etc. Nothing seems to get rid of this space.

Telerik WebUI VSExtensions   2011.02.712.0
Telerik RadControls for ASP.NET AJAX VSExtensions Package

Jeff
0
Marin Bratanov
Telerik team
answered on 31 Oct 2012, 09:37 AM
Hi Jeff,

This is rather odd, because such behavior has not yet been reported.

Most browsers have a limit on the minimal size a RadWindow can have (i.e. an iframe inside a table), but IE does not have it, so if this is the cause IE should not exhibit this behavior. This minimal height is about 150px for the iframe.

If the space is coming from the content page - does it also manifest when you load the page in a simple iframe and directly in the browser? If it does in either of these cases then the problem should be in the content page itself - e.g. invalid HTML, some CSS rule, etc.


Kind regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Peter
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Peter
Top achievements
Rank 1
yasir
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or