This question is locked. New answers and comments are not allowed.
Hi,
I am encountering a problem with searching radlistbox items. MyCode:
private void searchListBox(object sender, EventArgs e) |
{ |
int count = 0; |
foreach (RadListBoxItem item in this.lbLiveClients) |
{ |
if(item.DescriptionText == this.txtFindLiveClient.Text) |
{ |
this.lbLiveClients.SelectedIndex = count; |
break; |
} |
count++; |
} |
} |
gives an error:
foreach statement cannot operate on variables of type 'Telerik.WinControls.UI.RadListBox' because 'Telerik.WinControls.UI.RadListBox' does not contain a public definition for 'GetEnumerator'.
Any Solution to this:
I have items that have both text and description text. I wanted to search description text for some reason. then i decided on simple for loop.
for (int i = 0; i < this.lbLiveClients.Items.Count; i++) |
{ |
this.lbLiveClients.Items[i]. |
} |
but no description text property there for items there, only the text property.
Any Solution to any of this.??
Thanks in advance
Thanks in advance