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

[Solved] Programmatic creation of combobox checkbox Itemtemplate

1 Answer 173 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Moon
Top achievements
Rank 2
Moon asked on 07 Dec 2009, 09:14 PM

how can I programmatically build an item template for a radcombobox with a checkbox?

                <telerik:RadComboBox ID="cmbOfficeMultiple" runat="server">  
                    <ItemTemplate> 
                            <asp:CheckBox runat="server" ID="chkListValues" /> <%#Eval("ListValueName")%> 
                    </ItemTemplate> 
                </telerik:RadComboBox> 

I want to start with this in the code in front, but add the itemtemplate in the codebehind. How is that done?

<telerik:RadComboBox ID="cmbOfficeMultiple" runat="server">  
</telerik:RadComboBox> 

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Dec 2009, 06:08 AM
Hello Moon,

Have a look at the following documentation which describes how to add templates at design time/run time.
Adding Templates

-Shinu.
Tags
ComboBox
Asked by
Moon
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or