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
510
Using UltraComboEditor as simple Combo Box Select specifis value works only once.
posted

I create a combo editor value list from a temp-table like this.

for each t-q_g_menu:
  ultraComboEditorTopMenu:Items:Add(t-q_g_menu.qmenuid, t-q_g_menu.qmenutit).
end.

When I select a menu item from a tree view I whant to set the correct value of the menu item into the combo editor.

This works the first time correct.

ultraComboEditorTopMenu:SelectedText = TreeBranch.qtopmenuid.

Each time after the the combo displays each key value as added value to the string.

Like MAINMAIN after that MAINMAINMAIN and so on.

What do I have to do to select the proper item in value list of the combo editor?

Kind regards,

Peter Wokke

Parents
  • 4625
    Offline posted

    Hello Peter,

    Thank you for posting in our forums!

    Based on your scenario I recommend you to use UltraComboEditor`s SelectedItem property. After new selection occurs in the UltraTree, you can enumerate through the value list of the UltraComboEditor and find the first value equivalent to the selected UltraTree`s node text, since the value type of your UltraComboEditor items is string. Using this approach you are able to find and select the value item of the UltraComboEditor, no matter of its value list position.

    In order to get more insight about my explanations I have created a sample project attached to the bottom of this post.

    Please let us know if you need any further assistance or if we are missing something.

    UltraTreeWithComboEditor.zip
Reply Children