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

Display inline in RenderMode=Natvie?

3 Answers 107 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
tomexou
Top achievements
Rank 1
tomexou asked on 14 May 2015, 08:30 PM

I found the RadComboBox (RenderMode=Natvie) will render as block (not inline in other modes).
How could I let it display as inline? 

<telerik:RadComboBox ID="RadComboBox1" runat="server" RenderMode="Native">
    <Items>
        <telerik:RadComboBoxItem Text="A" Value="A"/>
        <telerik:RadComboBoxItem Text="B" Value="B"/>
    </Items>
</telerik:RadComboBox>

3 Answers, 1 is accepted

Sort by
0
Accepted
Aneliya Petkova
Telerik team
answered on 15 May 2015, 06:58 AM
Hi,

You can just add the following CSS and the native RadComboBox will be displayed inline-block:
<head runat="server">
    <title></title>
    <style>
        html div.RadComboBox {
            display: inline-block;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" />
        <div>
 
            <telerik:RadComboBox ID="RadComboBox1" runat="server" RenderMode="Native">
                <Items>
                    <telerik:RadComboBoxItem Text="A" Value="A" />
                    <telerik:RadComboBoxItem Text="B" Value="B" />
                </Items>
            </telerik:RadComboBox>
            <asp:TextBox runat="server" Width="300px" />
        </div>
    </form>
</body>


Regards,
Aneliya Petkova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
tomexou
Top achievements
Rank 1
answered on 15 May 2015, 08:03 AM

It works as inline, thanks a lot. :)

0
tomexou
Top achievements
Rank 1
answered on 15 May 2015, 08:04 AM

Hi, Aneliya: 

It works as inline now, thanks a lot.

Tags
ComboBox
Asked by
tomexou
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
tomexou
Top achievements
Rank 1
Share this question
or