Including a Link within RadMultiSelect Item Template

1 Answer 60 Views
MultiSelect
Kate
Top achievements
Rank 1
Kate asked on 21 Jun 2023, 11:59 PM | edited on 22 Jun 2023, 08:44 PM

I'm using a Rad MultiSelect to search for people, and I would like to include a link to the selected person's profile page within the item template.  I noticed that when I use a RadButton, I don't see it on the page.  When I use the <a OnClick> I see the hyperlink but I can't hit the controller action.  

Is it possible that I just can't use a RadButton in the MultiSelect Item Template?


<ItemTemplate> <span class="k-state-default"> <p>#: data.Foo#</p> <a OnClick="detailsViewClick" runat="server" ID="Bar">View Details</a> <%-- Commented out because this does not even show up on the view <telerik:RadButton RenderMode="Lightweight" ID="Bar" runat="server" Text="ViewDetails" OnClick="detailsViewClick" > </telerik:RadButton>--%>

</span> </ItemTemplate>


1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 26 Jun 2023, 07:08 AM

Hi Kate,

RadMultiSelect is a server wrapper of the Kendo UI multiselect widget and its Templates mechanism is based on the Kendo UI Templates, which due to their client nature do not support server controls like the asp:Button.

 You can find more information on the matter in the following similar forum thread: Button inside MultiColumnComboBox.

Tags
MultiSelect
Asked by
Kate
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or