Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / How to put a combobox in a treeview's node

How to put a combobox in a treeview's node

New Discussion
Alberto Poggiali
Alberto Poggiali asked on Nov 30, 2022 3:13 PM

Hi, I need to have in my treeview some nodes with normaly text and also a comboBox with some others values…

is it possible?

thank you for help!

I use NetAdvantage ver. 13.1.20131.2124

Sign In to post a reply

Replies

  • 0
    Bozhidara Pachilova
    Bozhidara Pachilova answered on Nov 30, 2022 11:03 AM

    Hello Alberto,

    Thank you for posting to Infragistics Community!

    Please, keep in mind that NetAdvantage ver. 13.1.20131.2124 is long expired and is not eligible for developer support services. Please, check out our Supported Environments page for a complete list of the currently active versions.

    Having this in mind, I have prepared a sample demonstrating how your requirement can be achieved with the UltraTree component form Ultimate UI for Windows Forms. It does, however, target the latest version – 22.2. My suggestion is to download a Free Trial with the latest version and test the UltraTree capabilities with it.

    So, to address your question, I believe you will find the Embeddable Editors Overview topic for the UltraTree topic from our documentation helpful on the matter as well as the “Set an Embeddable Editor” one.

    Please, also note that according to the “Allow Cell Editing in WinTree” topic, editing nodes by clicking on them is only applicable to nodes that display columns. For better illustration, the sample creates and populates the tree nodes in code, as well as creates ColumnSets by following the approach from the “Adding Columns Using Freeform Style” topic. Of course, everything could also be setup via the designer.

    Finally, an UltraComboEditor is set as the EditorComponent of one of the columns.

    In conclusion, please, check out the below attached sample on your side and let me know if you require any further assistance on the matter.

    Best regards,
    Bozhidara Pachilova
    Associate Software Developer

    • 0
      Alberto Poggiali
      Alberto Poggiali answered on Nov 30, 2022 1:04 PM

      Thank you very much Bozhidara for your help ans suggests. Actually the embedded way make the entire node like the control associated, but i need that it was togeder the text node. By the way, is there a way to make only one word of the node text underlined and clickable??

      thanks in advance!

      Regards  

      • 0
        Bozhidara Pachilova
        Bozhidara Pachilova answered on Nov 30, 2022 3:13 PM

        Hi Alberto,

        It seems the sample attachment did not get through with my previous reply, so I am reattaching it. Please, let me know if you are able to see and access it.

        What I can suggest in order to avoid displaying the combo drop down button at all times would be to set its DropDownButtonDisplayStyle property to “OnMouseEnter”. In this way, the node’s cells will appear as normal textboxes, nevertheless the user will still have an indication on hovering that the values could be edited by choosing from a combo. Here is the result:

        I am suggesting this as I am not sure if there would be a straightforward approach to set a textbox for display and a combo for edit mode separately. Additonally, in case my understanding of your requirement is incorrect, please, do elaborate further.

        Regarding your second question, you could use an UltraFormattedTextEditor or an UltraFormattedLinkLabel control to display formatted text. The sample also demonstrates this.

                        node.Cells["Column3"].Value = "Column 3 Value";
        //...
         UltraFormattedTextEditor ufll = new UltraFormattedTextEditor();
                    this.ultraTree1.ColumnSettings.ColumnSets[0].Columns["Column3"].EditorComponent = ufll;

        Best regards,
        Bozhidara Pachilova

        5040.UltraTreeWithComboEditor

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Alberto Poggiali
Favorites
0
Replies
3
Created On
Nov 30, 2022
Last Post
3 years, 9 months ago

Suggested Discussions

Created by

Created on

Nov 30, 2022 3:13 PM

Last activity on

Feb 23, 2026 9:50 AM