how to show dropdown in multicolumn combobox

4 posts, 0 answers
  1. Asoka
    Asoka avatar
    2 posts
    Member since:
    Feb 2009

    Posted 27 Feb 2009 Link to this post

    HI,
    I want to show dropdown when i click in multicolumn comboxbox. Can you help me?

    Thanks
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 02 Mar 2009 Link to this post

    Hi Asoka,

    Thanks for your question.

    I am not quite sure that I correctly understand what you are trying to achieve. You can use the ShowPopup() method in order to explicitly open the drop down of this control. Take a look at the following code snippet:

    private void radButton2_Click(object sender, EventArgs e) 
        this.radMultiColumnComboBox1.MultiColumnComboBoxElement.ShowPopup(); 


    I hope this will help you.

    Do not hesitate to get back to me if you need further assistance.

    Best wishes,
    Deyan
    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. Asoka
    Asoka avatar
    2 posts
    Member since:
    Feb 2009

    Posted 02 Mar 2009 Link to this post

    Hi!

    This is my code :

        Private Sub cbbIngredientCode_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles cbbIngredientCode.Click 
            cbbIngredientCode.MultiColumnComboBoxElement.ShowPopup() 
        End Sub 

    It is not show the dropdown when i clicked into combobox  ( i don't click buton dropdown)
  5. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 05 Mar 2009 Link to this post

    Hi Asoka,

    Thanks for getting back to me with the details.

    Please, consider the following code snippet:

     
     
    Dim item As RadTextBoxItem = TryCast(Me.radMultiColumnComboBox1.MultiColumnComboBoxElement.Children(2).Children(0).Children(0), RadTextBoxItem) 
     
    If item IsNot Nothing Then 
         AddHandler item.Click, AddressOf OnTextBoxItem_Click 
    End If 
     
     

    In the OnTextBoxItem_Click event handler you can just open the drop down menu by using the already known method.

    I hope this will help you achieve the desired behavior.

    Do not hesitate to write back in case of further impediments.

    Greetings,
    Deyan
    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