I have a very simple test scenario that I am trying to work out and have found a very strange behavior that is keeping it from working.
Here is my basic scenario: I want to display a modal window with a single user control in it. The user control only contains a RadGrid for editing some basic data. If I put a copy of the RadWindow code on a test host aspx page, it works just fine. If I put the *exact same code* into a new bare bones user control, and desposit that on a different test page, the RadWindow no longer displays.
Here is my RadWindow definition:
If I put this on my test page, it works fine. If I put it into this user control (with no code behind), it no longer displays. When I click the button the screen flickers and nothing shows.
Why would I get different behaviors?? My test pages have nothing more than a RadScriptManager on them because I was trying to strip this all done to the absolute bare minimum to get it working.
That is the basic issue, but I did a little more extensive troubleshooting. I created a test page that had the basic RadWindow code input right on it, and right below it, a reference to the user control - effectively giving me both ways of doing it on the same page.
Here is where things got interesting. If I clicked the user control embedded version, the screen flashed and nothing else happened. It doesn't matter if I click that button first or not. Once I click the local page version of the RadWindow then I see the modal dialog as I should. HOWEVER, I accidentally noticed that in fact the user control embedded version is actually right underneath the one I see. If I move the local embedded RadWindow out of the way, I can see the window created by the user control, as shown in the attached image.
So, what is going on here anyway, and how can I fix it?
Here is my basic scenario: I want to display a modal window with a single user control in it. The user control only contains a RadGrid for editing some basic data. If I put a copy of the RadWindow code on a test host aspx page, it works just fine. If I put the *exact same code* into a new bare bones user control, and desposit that on a different test page, the RadWindow no longer displays.
Here is my RadWindow definition:
<telerik:RadWindow ID="modalPopup" runat="server" Modal="true" OffsetElementID="main" OpenerElementID="btnShowWindow" Height="525px" Width="525px" InitialBehaviors="Resize"> <ContentTemplate> <uc3:MissingLocationPremiumEditor ID="ctlMissingLocationPremiumEditor" runat="server" /> </ContentTemplate></telerik:RadWindow><asp:Button ID="btnShowWindow" runat="server" Text="Show Window" />If I put this on my test page, it works fine. If I put it into this user control (with no code behind), it no longer displays. When I click the button the screen flickers and nothing shows.
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="windowdummy.ascx.vb" Inherits="McRating.windowdummy" %><%@ Register Src="../controls/ClientPicker.ascx" TagName="ClientPicker" TagPrefix="uc2" %><%@ Register Src="../protected/controls/ClientDetail.ascx" TagName="ClientDetail" TagPrefix="uc1" %><%@ Register Src="../protected/controls/MissingLocationPremiumEditor.ascx" TagName="MissingLocationPremiumEditor" TagPrefix="uc3" %><telerik:RadWindow ID="modalPopup" runat="server" Modal="true" OffsetElementID="main" OpenerElementID="btnShowWindow" Height="525px" Width="525px" InitialBehaviors="Resize"> <ContentTemplate> <uc3:MissingLocationPremiumEditor ID="ctlMissingLocationPremiumEditor" runat="server" /> </ContentTemplate></telerik:RadWindow><asp:Button ID="btnShowWindow" runat="server" Text="Show Window" />Why would I get different behaviors?? My test pages have nothing more than a RadScriptManager on them because I was trying to strip this all done to the absolute bare minimum to get it working.
That is the basic issue, but I did a little more extensive troubleshooting. I created a test page that had the basic RadWindow code input right on it, and right below it, a reference to the user control - effectively giving me both ways of doing it on the same page.
Here is where things got interesting. If I clicked the user control embedded version, the screen flashed and nothing else happened. It doesn't matter if I click that button first or not. Once I click the local page version of the RadWindow then I see the modal dialog as I should. HOWEVER, I accidentally noticed that in fact the user control embedded version is actually right underneath the one I see. If I move the local embedded RadWindow out of the way, I can see the window created by the user control, as shown in the attached image.
So, what is going on here anyway, and how can I fix it?