RadComboBox inside a RadComboBox ItemTemplate

2 posts, 0 answers
  1. Ravi Divate
    Ravi Divate avatar
    7 posts
    Member since:
    Apr 2010

    Posted 01 Mar 2011 Link to this post

    Hi Telerik,

    I have a RadComboBox inside a RadComboBox ItemTemplate and the inner combobox is loading the items but the items are displayed behind the main combobox. Please look at the attached image to understand clearly. I want to get the items in the front so user can see all the items clearly and feel as the normal behavior of combobox.

    Let me know how I can get out of this issue.

    Thanks in advance,
    Ravi
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Mar 2011 Link to this post

    Hello,


    You can set higher "z-index" value for the inner RadComboBox to show it above the main cmbo. Check the sample code.


    ASPX:
    <telerik:RadComboBox ID="RadComboBoxMain" runat="server">
        <Items>
            <telerik:RadComboBoxItem Text="ITEM 1" Value="SELECT ITEM"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="ITEM 2" Value="SELECT ITEM"></telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem Text="ITEM 3" Value="SELECT ITEM"></telerik:RadComboBoxItem>
        </Items>
        <ItemTemplate>
            <telerik:RadComboBox Style="z-index: 7000;" ID="RadComboBoxInner" runat="server">
                <Items>
                    <telerik:RadComboBoxItem runat="server" Text="ITEM1" Value="SELECT ITEM"></telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" />
                </Items>
            </telerik:RadComboBox>
        </ItemTemplate>
    </telerik:RadComboBox>



    Thanks,
    Princy.
Back to Top