I was wondering if there is the possibility of implementing this that I present the images below with a combo.
Hi,
UltraComboEditor doesn't have any functionality build-in for something like this. I'd recommend that you use the ButtonsRight collection to provide your own dropdown. You could use an UltraTree or UltraGrid control on the dropdown to display the data like you have it here.
Here's another post where there's some sample code which shows you how to replace the existing dropdown in the combo with a control of your choice.
UltraComboEditor - Can I Use a Custom Control for the DropDown? - Infragistics Community
You can send me something in vb.I want to study the situation to implement something.
I'm a little confused. The article I pointed you to here is using UltraComboEditor with a DropDownEditorButton. But you say you are using the UltraDropDownButton control?
And you want it to drop down any time it gets focus or when the user clicks on it?
Is that right?
With UltraDropDownButton, the user can use the Down arrow to drop it down when it has focus. But if you want it to drop down whenever it gets focus, you could do something like this:
Private Sub UltraDropDownButton1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UltraDropDownButton1.Enter Dim ddButton As UltraDropDownButton = CType(sender, UltraDropDownButton) If Not ddButton.IsDroppedDown Then ddButton.DropDown() End If End Sub
You seem to be saying that this interferes with clicking on the button, but I tried it out and it worked just fine for me.
Really. I'm using UltraDropDownButton with treeview.with this code the focus been run by the keyboard. It turns out that when I use the mouse to give focus to the box does not open automatically.I have to give two clicks to run the dropdown. One for focus and another to drop down.
I tried this out and it only takes one click for me to drop down the UltraDropDownButton. Where was the focus before you clicked on it? If you were on another dropdown, then the grid click anywhere might be used by the previous dropdown to close itself up.
txtNome = ultraTextEditortxtCentroCusto = ultraDropDownButtonappCC = ultraPopupControlContainerappListaCC = ultraTreeI put the following code in the event of txtCentroCusto ENTER:If appCC.IsDisplayed = False Then txtCentroCusto.DropDown ()End IfRunning the program have the following cases:1) Using the Mouse:● Focusing on txtNome txtCentroCusto and going to the appCC is not open, or opens and closes very quickly, yet I could not fix. AND I NEED TO GET IT OPEN● Focusing on txtCentroCusto and the appCC component not visible, I click on the txtCentroCusto and then appCC appears.1) Using the Keyboard:● Focusing on txtNome and going to txtCentroCusto via TAB key, the appCC is opened automatically. No I need to hit any key.
I'm a little confused. What are you using the ultraPopupControlContainer for? The DropDownEditorButton object which you add to the ButtonsRight collection of UltraTextEditor has a Control property. This property should be set to the control you want to drop down, which in this case is the tree, I think. So there's no need for an UltraPopupControlContainer.