Search code examples
asp.netc#-4.0telerikpngradcombobox

Telerik Combobox - with image and string


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


Solution

  • 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>