My apologies if this is answered elsewhere, I couldn't find any relevant searches.
For reasons I won't go into here, I've had to switch from using an UltraCombo to a combination of UltraTextEditor / right button is DropDownEditorButton / button's control is an UltraGrid. Essentially I'm making my own combo.
I need to have the ability to drop down the grid and still allow for editing in the text field while the grid is down.
I can do this by using the following settings:
dropDownButtonEditor.AutoFocus = false;
ultraTextEditor.AlwaysInEditMode = true
Which works great until the user needs / wants to scroll the data in the grid. Clicking on a scroll arrow in the drop down grid gives it focus, which causes two problems:
1) The user can no longer type in the editor because it doesn't have focus
2) Now that the drop down grid has focus, trying to click back into the editor (or programmatically sending focus to the text editor) causes the drop down to lose focus...which automatically forces it to close.
I'm hoping there's some property I'm overlooking that would allow me to fix this situation. Any help would be greatly appreciated.
Thanks!
Chris Rowland
I should probably clarify my question.
I understand it's standard windows behavior to close a drop down when it loses focus. I'm not asking for a suggestion on how to subvert standard windows behavior.
But if you compare the construct above to the actual UltraCombo (when the style is an editable combo), clicking the scroll down button on the drop down portion never takes focus away from the text box portion, thus a user could type a value, click scroll down, and continue typing without re-dropping the drop down.
Using the ultratexteditor / dropdowneditorbutton / ultra grid i can't do that (and I want / need to).
Hello Chris,
Thank you for contacting Infragistics.
The reason the editor loses focus when the scroll buttons in the grid are clicked is because from Windows' point of view the two are completely separate controls. On the other hand, Windows considers all parts of the UltraCombo to be the same control.
It may be possible for us to add a property to the DropDownEditorButton to indicate that the control should stay dropped down even when focus is lost. I would recommend submitting this as an idea at http://ideas.infragistics.com so our product management team can see it and so other users can vote on it.