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
115
ComboboxTool EventHandling
posted

Hi all

If I add a new comboboxtool to my UltraToolbarsManager at runtime, then the event ToolValueChanged never fired. If I add a comboboxtool with the designer then it works correctly.

I use the following code to add a comboboxtool at runtime

      ComboBoxTool cbTest = new ComboBoxTool("combotest1");

      ValueList oList = new ValueList();

      ValueListItem oItem1 = new ValueListItem();
      ValueListItem oItem2 = new ValueListItem();

      oItem1.DisplayText = "aaa";
      oItem2.DisplayText = "bbb";

      oList.ValueListItems.Add(oItem1);
      oList.ValueListItems.Add(oItem2);

      cbTest.ValueList = oList;

      ultraToolbarsManager1.Tools.Add(cbTest);
      ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools.AddTool(cbTest.Key);

Any ideas how can I solve that problem?

Regards
Roland