Finding Row by Text o by Value

4 posts, 0 answers
  1. Aldemar
    Aldemar avatar
    41 posts
    Member since:
    Jan 2008

    Posted 13 Feb 2009 Link to this post

    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
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 16 Feb 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Aldemar
    Aldemar avatar
    41 posts
    Member since:
    Jan 2008

    Posted 16 Feb 2009 Link to this post

    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
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 18 Feb 2009 Link to this post

    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.
Back to Top