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

RadWindow incorrect when displayed from user control

2 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Lynn
Top achievements
Rank 2
Lynn asked on 10 Jun 2010, 06:12 AM
I have been using RadWindow for some time now in various applications and with no problems.  I have successfully sent parm's to the window and received values back on close.  I only say this so you know I've been using it for some time and am not a complete newbie.

I have a RadWindow which I am trying to display from a user control (which is, of course, located on a web page which uses a master page).  When I display the window, resizing does not work, setting the title text value does not work, and setting the behaviors has no effect on the window that is displayed.

I can take exactly the same code, put it on another web page that does not use a user control or master page and it works fine.  Is there something about doing this from a user control that causes the RadWindow to behave improperly?

            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
            <Windows> 
                <telerik:RadWindow   
                    id="RadWindow2"   
                    runat="server" 
                    showcontentduringload="false" 
                    width="900px" 
                    height="100px" 
                    title="Telerik RadWindow" 
                    behaviors="Close">  
                </telerik:RadWindow> 
            </Windows> 
            </telerik:RadWindowManager> 
 
        function openy() {  
            radopen("UserControls/ARadWindowTest.aspx", "RadWindow2");  
        }  
 
<asp:LinkButton ID="LinkButton2" OnClientClick="openy(); return false;" runat="server">RadOpen</asp:LinkButton> 

The attached file contains a screen capture of the results of this action.  Please note that the RadWindow2 is defined as being 900 pixels wide, 100 pixels high, and containing a title of "Telerik RadWindow".

Is there some kind of problem with displaying a RadWindow from within a User Control?  Is there something you can see that I am doing wrong, because I have taken this same code to another page (without the user control) and it has worked perfectly.

Help, please!

2 Answers, 1 is accepted

Sort by
0
Accepted
Petio Petkov
Telerik team
answered on 10 Jun 2010, 05:11 PM
Hello Lynn,

In case that you want to resize the RadWindow, you should add Resize to its Behaviors property, e.g.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">   
           <Windows>  
               <telerik:RadWindow
                   ID="RadWindow2"    
                   runat="server"  
                   ShowContentDuringLoad="false"  
                   Width="900px"  
                   Height="100px"  
                   Title="Telerik RadWindow"  
                   Behaviors="Close,Resize">   
               </telerik:RadWindow>  
           </Windows>  
           </telerik:RadWindowManager>
I tested the code you sent in UserControl and it works as expected. You can find the tested pages as attachment. In case that you still experience this problem, please open a new support thread and send us a running project(or live url), where we can observe the problem locally. Once we receive it, we will do our best to help you.

Best wishes,
Petio Petkov
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
Lynn
Top achievements
Rank 2
answered on 10 Jun 2010, 06:47 PM
Petio,

Thank you for the time spent.  This did not resolve the matter for me, but further testing followed by searching on Google did.  First, I did more isolation testing and discovered that the "culprit" was not in using the "user control", but in the use of a Master Page.

Once I discovered that, I did more searching using Google and located the following page:

http://www.telerik.com/community/forums/aspnet/self-paced-tutorial/radwindowmanager-not-working-with-master-page.aspx

What I discovered from this was that the Master Page contained (by accident) another Telerik RadWindowManager and it was the conflict caused by the two RadWindowManagers that was causing my problem.

I eliminated the RadWindowManager on the Master Page and everything is working fine now.

Thanks for your assistance even though it didn't directly solve the problem.  It did get me going in the appropriate direction.

Lynn
Tags
Window
Asked by
Lynn
Top achievements
Rank 2
Answers by
Petio Petkov
Telerik team
Lynn
Top achievements
Rank 2
Share this question
or