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

how to show dropdown in multicolumn combobox

3 Answers 122 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Asoka
Top achievements
Rank 1
Asoka asked on 27 Feb 2009, 09:19 AM
HI,
I want to show dropdown when i click in multicolumn comboxbox. Can you help me?

Thanks

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 02 Mar 2009, 03:36 PM
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.
0
Asoka
Top achievements
Rank 1
answered on 03 Mar 2009, 02:17 AM
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)
0
Deyan
Telerik team
answered on 05 Mar 2009, 08:48 PM
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.
Tags
MultiColumn ComboBox
Asked by
Asoka
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Asoka
Top achievements
Rank 1
Share this question
or