我希望能够在手动插入的项目“所有配置文件”旁边显示标签,现在它只显示顶部的复选框,但我不确定如何将文本传递给标签。
谢谢
请您参考如下方法:
你能试试这样的东西吗?
<telerik:radcombobox id="myCombo" emptymessage="All Types" runat="server" width="200px" AppendDataBoundItems="True">
<ItemTemplate>
<div onclick="StopPropagation(event)">
<asp:CheckBox runat="server" ID="chk1" onclick="onCheckBoxClick(this)"/>
<asp:Label runat="server" ID="lblProfile" AssociatedControlID="chk1"><%# Eval("Name") %></asp:Label>
</div>
</ItemTemplate>
<Items>
<telerik:RadComboBoxItem runat="server" Name="Hello"></telerik:RadComboBoxItem>
</Items>
</telerik:radcombobox>
