This is a migrated thread and some comments may be shown as answers.

Contains Method ?

3 Answers 90 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Emrah Yigit
Top achievements
Rank 1
Emrah Yigit asked on 28 Apr 2007, 02:12 PM
Hello,

Is there any way to use comboBox.contains method ?

Best Regards

3 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 02 May 2007, 08:41 AM
Hi Emrah Yigit,
Please explain in more details how do you intend to use the Contains method and what your expectations are regarding its usage. At present the Contains method is inherited from the Control base class, thus searching for child controls inside the combobox control. You can use the FindItem and FindItemExact methods to search string representations for the items contained inside the combobox Items collection (or populated through databinding).

Greetings,
Dimitar Kapitanov
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Emrah Yigit
Top achievements
Rank 1
answered on 02 May 2007, 08:17 PM
I wrote that question before i couldn't find FindItemExact() method.

Thanks :)
0
Dimitar Kapitanov
Telerik team
answered on 03 May 2007, 06:34 AM
Hi Emrah Yigit,
You can find the methods in the RadComboBox control (FindItem and FindItemExact methods). They are public and have signatures like:

public RadComboBoxItem FindItem(string startsWith)

public RadComboBoxItem FindItemExact(string text)

If you need further assistance do not hesitate to contact us.



Regards,
Dimitar Kapitanov
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Emrah Yigit
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Emrah Yigit
Top achievements
Rank 1
Share this question
or