Dynamic RadWindow within RadPageView

4 posts, 1 answers
  1. MarkSci
    MarkSci avatar
    16 posts
    Member since:
    Dec 2011

    Posted 27 Mar 2013 Link to this post

    Hi everyone,

    I am dynamically creating a static radWindow to appear on a RadPageView within a RadMultipage. The code which creates the radWindow is done entirely within the code-behind, and I am using an AJAX manager.

    it all works fine and my RadWindow appears and is displayed where I want it (within a div called "RegistrationFileContainer" which is also within an ASP Panel control which I've hooked up to the AJAX Manager). 

    However when I click on the other tabs, the radWindow remains in front of the other tabs.

    I'm sure there is something simple which I am doing wrong. I've attached my markup code below (the code behind simply creates the window and then adds it to the RegistrationFileContainer Div).

    <!-- Pages -->
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
        <!-- Registration Information -->
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <asp:Panel runat="server" id="PanelRegistration" CssClass="PagePanel" >
                <div class="RegistrationFileContainer" runat="server" id="RegistrationFileContainer" />

    Can anybody help?



  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 27 Mar 2013 Link to this post

    Hi Mark,

    There is a good chance the radWindow's z-index is keeping it visible in your page. You may want to become familiar with RadControls default z-indexes. Each control has a set z-index, and controls with higher z-indexes will appear on top of others. There is a short demo on the Telerik website explaining this concept, here:

    Good luck,
    Master Chief
  3. DevCraft R3 2016 release webinar banner
  4. MarkSci
    MarkSci avatar
    16 posts
    Member since:
    Dec 2011

    Posted 27 Mar 2013 Link to this post

    Good guess Master Chief but no luck. Actually the z-Index property occurred to me too but I followed through with your suggestion and the same behaviour occurs. If you think about it logically, the z-Index shouldn't really come into play because the dynamic controls are added to the RadPageView and then subsequently the RadMultipage should handle the visibility of those controls when a different tab is selected.

    My thinking is this is more to do with binding the RadWindow to the RadPageView (and for some reason the standard container.controls.add(radWindow) isn't working. I thought this article might help, but there is no 'owner' property for a RadWindow in ASP.NET.

    Any other ideas...?
  5. Answer
    Nencho avatar
    1446 posts

    Posted 28 Mar 2013 Link to this post

    Hello Mark,

    I can suggest you to explicitly close the RadWindow at the OnClientTabSelecting client-side event of the RadTabStrip, regarding the RadTab, where the Window is nested in. Consider the following approach:

    <script type="text/javascript">
            function OnClientTabSelecting(sender, args) {
                if (args.get_tab().get_text() != "Tab 2") {

    The above suggestion is implemented, assuming that there is a RadWindowManager on the page. If there is none, you could simply access the RadWindow in the following manner :

    All the best,
    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.
Back to Top