<telerik:RadComboBox ID="rbt" runat="server" Skin="Office2010Black" AllowCustomText="true" CheckBoxes="True" EnableCheckAllItemsCheckBox="true" Width="125px" TabIndex="7" MarkFirstMatch="true" ToolTip="Select" EmptyMessage="Select" Height="100px" Filter="StartsWith">
<Items>
<telerik:RadComboBoxItem runat="server" Text="High" Value="High" />
<telerik:RadComboBoxItem runat="server" Text="Medium" Value="Medium" />
<telerik:RadComboBoxItem runat="server" Text="Low" Value="Low" />
</Items>
</telerik:RadComboBox>
I tried in code behind:
public void call()
{
rbt.ClearSelection();
rbt.Text = "Select";
}
I could not clear selection with the above code. I want to uncheck selected Items of a radcombo box when call()
function is called. Appreciate if anyone can tell if anything is missing.
with:
using Telerik.Web.UI;
The following code in code behind resolved my problem of deselecting values of combobox:
public void call()
{
if (rbt.CheckedItems.Count > 0)
{
foreach(RadComboBoxItem rcbItem in rbt.Items)
{
rcbItem.Checked = false;
}
}
}