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

hyperlink in radcombobox

1 Answer 111 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dane
Top achievements
Rank 1
Dane asked on 01 May 2013, 11:42 AM
Hi,
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">
 </telerik:RadComboBox>

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.

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 01 May 2013, 08:21 PM
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.

Kevin
Tags
ComboBox
Asked by
Dane
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or