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

No control over Radwindow Appearance

3 Answers 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stuart Watton
Top achievements
Rank 2
Stuart Watton asked on 27 Mar 2010, 10:22 AM
Hi

I am opening a radwindow with the radopen command and cannot figure out how to exercise control over the appearance of the resulting window. For instance, I am trying to hide the status bar.

Here is the code

<

 

telerik:RadWindowManager ID="RadWindowManagerPartPicker" ShowContentDuringLoad="false" VisibleStatusbar="false"

 

 

ReloadOnShow="true" runat="server" Skin="Vista" Opacity="50" KeepInScreenBounds="true" DestroyOnClose="true">

 

 

<Windows>

 

 

<telerik:RadWindow ID="PartsListWindow" runat="server" Behaviors="Close" OnClientClose="OnClientClose" VisibleStatusbar="false"

 

 

NavigateUrl="../Editor.aspx" Skin="Vista">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

<

 

script type="text/javascript">

 

 

//<![CDATA[

 

 

function openWin() {

 

 

var oWnd = radopen("Editor.aspx", "PartsListWindow");

 

}

 

 

 

//]]>

 

 

</script>

 



Whatever I try to do, I cannot get the Status bar not to appear. Can anyone help?

Thanks in Advance

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 29 Mar 2010, 12:56 PM
Hello Stuart,

I tried your code and everything is working as expected (see attached screenshot). If you still experience this problem, I suggest to open a support ticket and to send us a small sample project where it could be reproduced - we will check it right away and get back to you with a solution.


Sincerely yours,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Stuart Watton
Top achievements
Rank 2
answered on 29 Mar 2010, 02:39 PM
Georgi,

I worked out what was happening here. The window was being generated from a user control which had a RadWindowManager in it and the User Control was in a Page that also had a RadWindowManager in it. I was minipulating the Window Manager in the User control but the Window itself seems to have picked up the window manager preferences from the one on the page.

The solution in this circumstance was to remove the window manager from the page, but what happens when I have 2 User controls, both with window managers with different settings?

Stuart
0
Georgi Tunev
Telerik team
answered on 29 Mar 2010, 03:01 PM
Hi Stuart,

This behavior is expected when you have more than RadWindowManagers on the page - I apologize for missing that scenario. By design radopen(), radalert, GetRadWindowManager(), etc. RadWindowManager's functions will always use the RadWindowManager that is first rendered on the page.
That is why, in scenarios like yours, i.e. where you have multiple managers on page and you want to use specific one, we suggest to get a reference to that manager first and then call its method.
e.g.
function openWin() {
    var oWndMan = $find("<%= RadWindowManager1.ClientID %>");
    oWndMan.radopen("mySite", "myWindow");
}


All the best,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Stuart Watton
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Stuart Watton
Top achievements
Rank 2
Share this question
or