hyperlink in radcombobox

2 posts, 0 answers
  1. Dane
    Dane avatar
    1 posts
    Member since:
    May 2013

    Posted 01 May 2013 Link to this post

    I have to include an item which has a hyperlink in its text in a Rad combo box.
    Below is my code sample - 

    <telerik:RadComboBox Width="350px" Height="300px" ID="ddlAdditionalItems" runat="server"                                     DataValueField="AddItemId" DataTextField="AddItemDescription" AutoPostBack="false"
            EnableEmbeddedSkins="false" Skin="Custom_Default" OnClientDropDownClosed="radComboOnClientSelectedIndexChanged">

    Now, In one of the items, the 'AddItemDescription', the text contains href tags, like below --

    Additional Products go<a  href="http://www.google.com/search?q=Product" target="_blank">here</a> or <a href="http://www.google.com/search?q=Items" target="_blank">here</a>.

    Now, this is being rendered as raw text, with the tags. Is there a way to have this rendered as hyperlinks? Note that the Item list can vary, and same is the case with the position of the item with the tags.

  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 01 May 2013 Link to this post

    Hello Dane,

    From past post about similar issues, this is not possible because the text content is placed in an input control when you select it from the combobox. So there isn't anyway to render it as link.

Back to Top