I have a custom DropDownList
control built off of a Telerik RadComoBox
. I'm currently trying to get this custom control to emulate another RadComboBox
I have on another page that is capable of showing UserFullName, (Company) in the RadComboBox
drop down by using the following aspx:
<telerik:RadComboBox ID="rcbUsers" runat="server" Width="250px" DropDownWidth="300px" OnSelectedIndexChanged="rcbUsers_SelectedIndexChanged"
HighlightTemplatedItems="true" AutoPostBack="true" Height="400px">
<HeaderTemplate>
<div>
Full Name (Company)
</div>
</HeaderTemplate>
<ItemTemplate>
<div>
<b><%# DataBinder.Eval(Container.DataItem, "FullNameLastFirst") %></b>
(<%# DataBinder.Eval(Container.DataItem, "Company") %>)
</div>
</ItemTemplate>
</telerik:RadComboBox>
Is there anyway for me to imitate this in C# code behind for my custom control? It's a requirement that I not require any aspx besides the tag:
<cc1:UserListBox ID="rcbUserTrained" runat="server" OnPreRender="rcbUserTrained_PreRender"/>
Is this possible to do at the databind or render of the custom control?