Display inline in RenderMode=Natvie?

4 posts, 1 answers
  1. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 14 May 2015 Link to this post

    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>

  2. Answer
    Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 15 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 15 May 2015 in reply to Aneliya Petkova Link to this post

    It works as inline, thanks a lot. :)

  5. tomexou
    tomexou avatar
    8 posts
    Member since:
    Oct 2010

    Posted 15 May 2015 in reply to Aneliya Petkova Link to this post

    Hi, Aneliya: 

    It works as inline now, thanks a lot.

Back to Top