Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
DropDown DropDownEditorButton programmatic
posted

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