At the moment I have to break down this simple operation in two parts, I am sure the would be a better way is hiding from me :
List<int> selectedValues= new List<int>();
...
IEnumerable<RadComboBoxItem> checkedItems = from checkedItem in cblMagistrateCourts.Items.ToList()
where checkedItem.Checked == true
select checkedItem;
foreach (RadComboBoxItem item in checkedItems)
{
if (item.Checked)
selectedValues.Add(Convert.ToInt32(item.Value));
}
I am wanting this to be done server-side only.