Hi,
i have a UltraComboEditor with a DropDownEditorButton in the ButtonRight Collection with some controls in it. I hide the original DropDownButton from the UltraComboEditor, so the user only can see the DropDownButton which i added to the control.
In some cases this UltraComboEditor is located in an UltraGridColumn in the EditorComponent property. It works fine, except two things.
The very important issue is, how can i programmtic dropdown my DropDownEditorButton in the ActiveRow on the grid?
This doesnt work:
(this.ultraGrid1.ActiveRow.Cells[1].EditorComponentResolved as UltraComboEditor).Focus();
((this.ultraGrid1.ActiveRow.Cells[1].EditorComponentResolved as UltraComboEditor).ButtonsRight[0] as DropDownEditorButton).DropDown()
This does dropdown the original instance UltraComboEditor which is also located on the Form in this test.
This doesnt work either:
this.ultraGrid1.ActiveCell.DroppedDown = true;
This does dropdown the hidden and empty dropdown of the UltraComboEditor.
Is there any way to solve this problem?
The second issue is:
The BeforeDropDown event of the DropDownEditorButton in the UltraComboEditor does not get fired, when the control is located on a grid.
I saw this behavior some times and checked the documentation because of it. I can understand that, but why does the BeforeCellListDropDown event not get fired?!
Is there no way to cancel the DropDown event of the DropDownEditorButton in a grid?
Regards
Hello,
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that Michael provided you?
Let me know if you need any further assistance.
Thank you for using Infragistics Components.
Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Your second try here was close:
But you need to use EditorResolved and cast it to an EmbeddableEditorButtonBase.
((this.ultraGrid1.ActiveRow.Cells[1].EditorResolved as EmbeddableEditorButtonBase).ButtonsRight[0] as DropDownEditorButton).DropDown()
PV85281 said:The BeforeDropDown event of the DropDownEditorButton in the UltraComboEditor does not get fired, when the control is located on a grid.
You need to use the BeforeEditorButtonDropDown. BeforeDropDown only fires for the built-in dropdown in the Combo.