2
У меня есть RadComboBox, как показано нижеКак удалить несколько элементов из RadComboBox
<radC:RadComboBox ID="lstMaterial" runat="server" Width="100px" Height="100px" DropDownWidth="100px" />
в aspx.cs страницы на основе состояния необходимо добавлять и удалять несколько элементов из вышеприведенного управления RadComboBox, как показано ниже.
if(isTrue)
{
//Remove
List<string> strRemoveList = new List<string>();
strRemoveList.Add(lstMaterial.FindItemByText("Wood1").ToString());
strRemoveList.Add(lstMaterial.FindItemByText("Seam").ToString());
strRemoveList.Add(lstMaterial.FindItemByText("wood2").ToString());
// lstMaterial.Items.Remove(strConstructionStyleRemoveList);
//foreach(RadComboBoxItem rcbi in lstConstructionStyle.Items)
// {
// rcbi.Remove(strRemoveList);
// }
}