1

Is there a way of adding an image to a string within a telerik combobox - if so can you point me in the direction of a code snippet or link

I am using the combobox with languagues and want the country flag beside the country name

2 Answers 2

3

You can use the ItemTemplate for this:

<telerik:RadComboBox ID="RadComboBox1" runat="server">
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageUrl") %>' />
        <%# Eval("TextColumn") %>
    </ItemTemplate>
</telerik:RadComboBox>
Sign up to request clarification or add additional context in comments.

Comments

0

You will find something similar in RadComboBox for ASP.NET AJAX

<telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Outlook" AllowCustomText="true">
  <Items>
     <telerik:RadComboBoxItem ImageUrl="*Your Image*" Text="RadComboBox" runat="server" >
        </telerik:RadComboBoxItem>
    </Items>
</telerik:RadComboBox>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.