Hello,
I have the following requirement from a client: double-clicking on an UltraComboEditor shouls open the dropdown.
Could you help? It is an UltraComboeditor, not an UltraCombo.
I tried this without success:
private void ComboEditor_DoubleClick(object sender, EventArgs e) { ComboEditor.ToggleDropDown(); }
this.ultraComboEditor1.DropDown();
I'd like to open an ultracombo on click.
I was thinking something like this.
ultraComboBox1.DroppedDown = true;
Is this possible?
Yes this is perfect. It solved my problem.
I thank you a lot.
Pierre
Hello Pierre,
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Thank you for posting in our forum.
In order to make UltraComboEditor to drop down its value list you need to add event handler to its editor control double click event. Please note when UltraComboEditor enters in edit mode a textbox is drawn over its editable part. So actually this text box is the control the user double clicks. To get a reference to this control you can handle ControlAdded event of UltraComboEditor. Then you need to handle the double click event of the embedded text box. You can use code like this:
private void ultraComboEditor1_ControlAdded(object sender, ControlEventArgs e)
{
if (editor == null)
editor = e.Control;
editor.MouseDoubleClick += Editor_MouseDoubleClick;
}
In the attached archive I am sending you a small sample project where I have implement this approach. Please check my sample and let me know if this is what you are looking for or if I am missing something.