Refresh AdxRibbonComboBox

Add-in Express™ Support Service
That's what is more important than anything else

Refresh AdxRibbonComboBox
 
Subscribe
BerndH




Posts: 99
Joined: 2014-09-23
Hi,
I have an adxribboncombobox with list of items. For checking, if user types in an item that's not in the list,
I use the "onchange"-method.

In there, I check the text of the ribbon with the content of list. If it's not in, I reset the text of the ribboncontrolwith a default text.

This works fine ... AFTER THE SECOND try of inserting a "not-in-list-item".
If I start Outlook with this ribbon and the combobox,if I insert text and leave the combobox, the method is called. Method does his code ;-) and no "new" text is updated in the combobox :-(

First time: fail. Second an all other tries: everything works.

Can you help me ?

Bernd
Posted 14 Feb, 2024 12:44:08 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Hello Bernd,

Could you please send some code to the support email address?

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Feb, 2024 10:44:50 Top
BerndH




Posts: 99
Joined: 2014-09-23
I shortened it and can show it here :-)


private void AdxRibbonComboBox_Sendungsprio_OnChange(
            object sender,
            IRibbonControl control,
            string text)
{
	adxRibbonComboBox_Sendungsprio.Text = "Nicht angegeben";
}


It only do no refresh the first time. After that, it works.
Posted 15 Feb, 2024 10:53:03 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Hello Bernd,

I can't reproduce the issue using the project at https://temp.add-in-express.com/support/MyAddin5-BerndH.zip.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Feb, 2024 10:35:21 Top
BerndH




Posts: 99
Joined: 2014-09-23
Oha ... I found it.Change this, and you can reproduce:

public AddinModule()
        {
            Application.EnableVisualStyles();
            InitializeComponent();
            // Please add any initialization code to the AddinInitialize event handler
            adxRibbonComboBox1.Text = "not specified";

        }


As a workaround I left the combobox empty on startup ;-)
Posted 16 Feb, 2024 11:10:59 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Either I don't see the issue or I can't recognize it. Could you capture a video?

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Feb, 2024 14:54:13 Top
BerndH




Posts: 99
Joined: 2014-09-23
Okay, I recorded a "professional" video with my mobile :-D
Here it is.
Changing and leaving the combobox for the first time didn´t show "not specified". Re-Enter the combobox and change... everything works ...

https://service.mentana.de/download/temp/combobox.mov

Bernd
Posted 19 Feb, 2024 09:07:52 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Yes, that's a sure sign of a profi. :)

Thank you. I don't see this issue. What Outlook build are you using? Please capture a screenshot showing the area located *to the right* of the About Outlook button. If that area is empty, click the button and capture a screenshot of the About Outlook window.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Feb, 2024 10:08:27 Top
BerndH




Posts: 99
Joined: 2014-09-23
Outlook says

Microsoft® Outlook® für Microsoft 365 MSO (Version 2401 Build 16.0.17231.20236) 64 Bit
Posted 19 Feb, 2024 10:15:14 Top