Hi,
OnClientLoad i am populating the Radcombobox with list of datas. Now I am having a checkbox item template inside the RadCombobox, OnclientLoad how can i populate the checkbox with corresponding list of values.
<telerik:RadComboBox ID="RadComboBox1" OnClientLoad="loadComboBox" OnClientDropDownClosed="OnClientDropDownClosedHandler" runat="server">
<ItemTemplate>
<div >
<asp:CheckBox ID="CheckBox1" runat="server" Checked="true" onclick="onCheckBoxClick(this)"/>
<asp:Label runat="server" ID="Label1" AssociatedControlID="CheckBox1">
</asp:Label>
</div>
</ItemTemplate>
My function looks somewhat similar like this for binding only list of datas:
function OnCompleteOne(result) {
var combo = $find("<%= RadComboBox1.ClientID %>");
for (var i = 0; i < result.length; i++) {
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(result[i]);
combo.trackChanges();
combo.get_items().add(comboItem);
var items = combo.get_items();
comboItem.select();
combo.commitChanges();
}
}
My requriment is i want to assign the result values to the checkbox.
Kindly provide sample code if possible.
Thanks and regards,
Karthikeyan.G