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 don't think I have any samples of this in VB. But there's really not much to it. You use the ButtonsRight collection of the combo to add a DropDownEditorButton. Then you assign a Control to the button - it can be any control you want.
You will have to handle some events of the combo such as EditorButtonDropDown in order to set up the control that is acting as the list. For example, when you drop it down, you probably want to highlight the item that matches the current value.
And you will also want to handle some events of whatever control you are using as the list. For example, when the used clicks on a node in the tree (or a row in the grid, depending on what you decide to use), you will need to close the dropdown and update the combo's Value.
I'm using component dropdownbutton to display a treeview, but I have a problem.Using the mouse to click on dropdownbutton, the method is triggered automatically dropdown, then showing the treeview. When the keyboard focus is the method dropdown is not fired, not showing the treeview.In the event "ENTER" of dropdownbutton, I put the method dropdown over the reverse happens when the focus is triggered by clicking the treeview is not showing, and when the focus is driven by the keyboard appears to treeview.
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.
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 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.
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'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.