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

Rad Window in master page and content page are conflict

1 Answer 317 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 18 Mar 2009, 04:34 PM
Hi,

I have two windows, one in master page and another one in content page.
If I put the window above the content place holder in master page, then the rad window of content page's property are not working. Eg, withd, height, skin.

If i put the winodw below the content place holder in master page, then the rad window of master page's property are not working. Please let me know what is the conflict.

Window in Master Page
<telerik:RadWindowManager id="SingletonMaster" runat="server" Skin="Office2007" DestroyOnClose="false" VisibleStatusbar="false">   
        <windows>  
            <telerik:RadWindow id="dwFCCScopeFilter"  
                Skin="Office2007"  
                ReloadOnShow = "true"  
                ClientCallBackFunction="CallBackFunction"  
                OffsetElementId = "txtFCCScope"                        
                Left="5px"    
                Modal = "true"  
                Runat="server"    
                Width="370px"                          
                Height="450px"    
                Title="FCC Scope">   
            </telerik:RadWindow>  
        </windows>  
    </telerik:RadWindowManager>

Window in Content Page

<telerik:RadWindowManager id="SingletonContent" runat="server" Skin="Office2007" DestroyOnClose="false" VisibleStatusbar="false">
        <windows>
            <telerik:RadWindow id="dwFxRateEntry"
                Skin="Office2007"
                ReloadOnShow = "false"
                Left="5px"
                Modal = "true"
                Runat="server"
                Width="700px"                         
                Height="600px"
                Title="FX Rate Listing">
            </telerik:RadWindow>
        </windows>    
    </telerik:RadWindowManager 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 Mar 2009, 06:55 AM
Hi Alex,

When working with multiple RadWindowManagers on the page, you need to have the following in mind:
  1. All RadWindoManager functions (radalert, radprompt, radconfirm and radopen) are always using the RadWindowManager that is first rendered on the page.
  2. A RadWindowManager "recognizes" only the RadWindows that are declared in its WIndows collection.
That is why in such scenarios (managers in usercontrol / master page / content page) it is best not to use radopen() to open a specific window. You should use the ASP.NET AJAX $find() function instead.
e.g.
var oWnd = $find("<%= RadWindow1.ClientID %>")
oWnd.setUrl("http://myurl.com");
oWnd.show()



Kind regards,
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.
Tags
Window
Asked by
Alex
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or