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

Finding Row by Text o by Value

3 Answers 99 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.
Aldemar
Top achievements
Rank 1
Aldemar asked on 13 Feb 2009, 07:26 PM
hi!!

I need to know how can I do in RadMultiColumnComboBox to Find a row by text (displaymember) or by value (valuemember) for next selecting it , and can you help me with an example?

thanks

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 16 Feb 2009, 01:04 PM
Hello Aldemar,

Thank you for your question. You have to get the RadGridView that presents the data in the RadMultiColumnComboBox and scroll to the desired row:

private void radMultiColumnComboBox1_DropDownOpened(object sender, EventArgs e) 
             ((RadGridView)this.radMultiColumnComboBox1.EditorControl).GridElement.ScrollTo(5, 1); 

The other property that you may find interesting is CurrentRow. Thus you can set the current row.

Do not hesitate to write me back if you have further questions.

Greetings,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Aldemar
Top achievements
Rank 1
answered on 16 Feb 2009, 04:12 PM
Ok, but my question is because I wanted to know which method is similar to RadComboBox.FindExactItem(string) and RadComboBox.FindItem(string) both of them return index of localized item, so how to achieve it in similar way by using radMultiColumnComboBox

thanks
0
Nick
Telerik team
answered on 18 Feb 2009, 10:54 AM
Hi Aldemar,

Unfortunately, the answer to this question is that there is no such method.

You have to write your custom logic and we will can help you doing so. As I demonstrated you can get the grid inside the multicombobox and then you can use all the grid functionality available. For searching, you will have to traverse all rows. I have already demonstrated ScrollTo method and suggested that you may need IsCurrent property to make a row current. Please read this section from our documentation and the topics about the RadGridView in general. Do not hesitate to write me back if you have more questions.

Best wishes,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Aldemar
Top achievements
Rank 1
Answers by
Nick
Telerik team
Aldemar
Top achievements
Rank 1
Share this question
or