I need compare if a Radcombobox
has ItemElements
that matches with my expected string. Here is what I'm trying to do:
foreach (IRadComboBoxItem item in comboBox.ItemElements)
{
var itemExists = comboBox.ItemElements.FirstOrDefault(items => item.Text.Contains(expectedString));
if (itemExists == null) continue;
itemExists.Select();
return true;
}
However comboBox.Text.Contains(expectedString)
is not supported as I'm comparing IRadComboBoxItem
with a string. Could you please suggest how to achieve this?