HI,
I want to display an empty line in the RadComboBox as a first element without checkbox in it. see the code below,
<Telerik:GridBoundColumn HeaderText="DEmo" DataField="DEmo">
<FilterTemplate>
<Telerik:RadComboBox ID="RadCombo1" runat="server" DataTextField="CMBITEM" DataValueField="CMBITEM" DataSourceID="SQLDS" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("DEmo").CurrentFilterValue %>' AppendDataBoundItems="true" Width="100" OnClientDropDownClosing="mouseouts" EmptyMessage="">
<ItemTemplate>
<div id="div1" onclick="StopPropagation(event)" />
<asp:CheckBox runat="server" ID="CheckBox1" Text='<%# Eval("CMBITEM") %>' onClick="onCheckBoxClick(this);" />
</ItemTemplate>
</Telerik:RadComboBox>
Withthis Combobox is displaying like
Combo:
CheckBox with Item1
CheckBox with Item2
CheckBox with Item3
I want
Combo:
[Empty Line]
CheckBox with Item1
CheckBox with Item2
CheckBox with Item3
If I use this code below,
Protected Sub RadCombo1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs)
Dim RAB As RadComboBox = DirectCast(sender, RadComboBox)
RAB.Items.Insert(0, New RadComboBoxItem(""))
End Sub
I am getting,
Combo:
Checkbox [Empty Line]
CheckBox with Item1
CheckBox with Item2
CheckBox with Item3