RadComboBox renders differently in RadWindow

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    1 posts
    Member since:
    Nov 2012

    Posted 27 Nov 2012 Link to this post

    I have a radwindow that controls an aspx page.

    <telerik:RadWindow ID="wndDownloadAccounts" runat="server" Title="Download Accounts" Skin="Web20" Width="500px" Height="270px"
        ReloadOnShow="true" ShowContentDuringLoad="false" Behaviors="Close" VisibleStatusbar="false" DestroyOnClose="false" NavigateUrl="~/Views/Accounts/DownloadAccountsWindow.aspx" />


    The contents of DownloadAccountsWindow.aspx are as follows:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownloadAccountsWindow.aspx.cs" Inherits="Foo.FooBar.Views.Accounts.DownloadAccountsWindow" MasterPageFile="~/Resources/MasterPages/Bare.Master" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
    <asp:Content ContentPlaceHolderID="CP1" runat="server">
     
        <script type="text/javascript">
     
            function InitAccountsData() {
                var data = getRadWindowParent().GetAllAccountsData();
                $get('<%= allAccountsData.ClientID %>').value = data;
            }
     
            function OnTypeChanged(sender, args) {
                // <%-- This is vestigial code. --%>
                var selected = sender.get_selectedItem().get_text();
            }
         
        </script>
         
        <asp:HiddenField ID="allAccountsData" runat="server" />
     
        <div style="padding: 10px;">
         
            <table cellpadding="5">
                <tr>
                    <td>Download Type</td>
                    <td>
                        <telerik:RadComboBox ID="cmbDownloadType" Width="200px" runat="server" Skin="Vista" OnClientSelectedIndexChanged="OnTypeChanged" OnClientLoad="OnTypeChanged" >
                            <Items>
                                <telerik:RadComboBoxItem Text="Morningstar Office" Value="Morningstar" />
                                <telerik:RadComboBoxItem Text="Morningstar Principia" Value="Principia" />
                                <telerik:RadComboBoxItem Text="Morningstar Principia CAMS" Value="CAMS" />
                                <telerik:RadComboBoxItem Text="Orion" Value="Orion" />
                                <telerik:RadComboBoxItem Text="EbixCRM SmartOffice" Value="SmartOffice" />
                            </Items>
                        </telerik:RadComboBox>                 
                    </td>
                </tr>
                <tr>
                    <td>As-Of Date</td>
                    <td>
                        <telerik:RadDatePicker ID="dateAsOf" runat="server" Skin="Vista" />
                    </td>
                </tr>          
            </table>
            <br />
            <center>
                <asp:Button ID="btnDownload" runat="server" Text="Download" Width="100px" OnClick="btnDownload_Click" />
                    
                <input type="button" value="Close" style="width:100px;" onclick="getRadWindow().close()" />
            </center>
         
        </div>
         
        <script>
     
            InitAccountsData();
         
        </script>
     
    </asp:Content>

    When I navigate directly to the aspx, I get the following result:
    Direct Link

    When I load up the aspx in the radwindow I get the following:
    In radwindow

    Any item that is selected is not shown in the radcombobox when I load this aspx in a radwindow.

    Is there a known issue with Radwindows and radcomboboxes?
  2. Nencho
    Admin
    Nencho avatar
    1871 posts

    Posted 30 Nov 2012 Link to this post

    Hello Nathan,

    Let me suggest you try setting the RadComboBox ZIndex to a value higher than 3000.
    Please find more details about absolute positioning with Z-Index at this help article.

    All the best,
    Nencho
    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