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

RadComboBox inside a RadComboBox ItemTemplate

1 Answer 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ravi Divate
Top achievements
Rank 1
Ravi Divate asked on 01 Mar 2011, 05:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Mar 2011, 07:27 AM
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.
Tags
ComboBox
Asked by
Ravi Divate
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or