This question is locked. New answers and comments are not allowed.
Hello All,
I have working on silverlight4 application,i have started working on RadControls for silverlight.
I have spent a long time solving a issue on RadCombobox regarding selecting the item by its ID.
Here am following the below way to select an item in radcombobox
for (int i = 0; i < rcbMaintence.Items.Count; i++)
{
if (((MaintenanceCode)rcbMaintence.Items[i]).MaintenanceCodeID == e.Result[0].MaintenanceCodeID)
{
rcbMaintence.SelectedIndex = i;
break;
}
}
Here am getting the data from WCF Service,am getting MaintenanceCodeID by using this ID i need to select MaintenanceCode in combobox.It is working fine,but what my problem is
I have 10's of ComboBoxes on a single page,for all those i need to iterate FOR loops,it is taking so much time
instead of this many for loops i need a simple and fast way to select an item.
Please help me.
I have working on silverlight4 application,i have started working on RadControls for silverlight.
I have spent a long time solving a issue on RadCombobox regarding selecting the item by its ID.
Here am following the below way to select an item in radcombobox
for (int i = 0; i < rcbMaintence.Items.Count; i++)
{
if (((MaintenanceCode)rcbMaintence.Items[i]).MaintenanceCodeID == e.Result[0].MaintenanceCodeID)
{
rcbMaintence.SelectedIndex = i;
break;
}
}
Here am getting the data from WCF Service,am getting MaintenanceCodeID by using this ID i need to select MaintenanceCode in combobox.It is working fine,but what my problem is
I have 10's of ComboBoxes on a single page,for all those i need to iterate FOR loops,it is taking so much time
instead of this many for loops i need a simple and fast way to select an item.
Please help me.