kritzelkratz
Topic Author
Posts: 18
Joined: 19 Sep 2013, 17:44

ComboBox: strange behaviour when adding items

29 Apr 2014, 17:27

we are programmatically adding ComboBoxes to e.g. a StackPanel.
since noesisgui version 1.1.6 the items are displayed twice.
we narrowed it down to it being necessary that the items need to be added to the ComboBox before the ComboBox is added to e.g. the StackPanel.
but we need to fill the ComboBox after it has been added to the layout. which has worked before 1.1.6.
is this a bug, or did we do something wrong the whole time?

this doesn't work: (the combobox popup shows "test1 test2 test3 test1 test2 test3", but the combobox item count is 3)

StackPanel sp = FindName<StackPanel>("mainPanel");
ComboBox cb = new ComboBox();
sp.GetChildren().Add(cb);
cb.GetItems().Add("test1");
cb.GetItems().Add("test2");
cb.GetItems().Add("test3");

and this works: (the combobox popup shows "test1 test2 test3")

StackPanel sp = FindName<StackPanel>("mainPanel");
ComboBox cb = new ComboBox();
cb.GetItems().Add("test1");
cb.GetItems().Add("test2");
cb.GetItems().Add("test3");
sp.GetChildren().Add(cb);
 
User avatar
sfernandez
Site Admin
Posts: 3222
Joined: 22 Dec 2011, 19:20

Re: ComboBox: strange behaviour when adding items

29 Apr 2014, 18:57

This is totally a bug (I was able to reproduce it), please report it in the bugtracker. We will fix it for the next release, or provide you a hotfix as soon as possible.

Sorry for the inconvenience.
 
kritzelkratz
Topic Author
Posts: 18
Joined: 19 Sep 2013, 17:44

Re: ComboBox: strange behaviour when adding items

30 Apr 2014, 11:30

i reported the bug on the bugtracker.
a hotfix would be really really nice, of course. :)
 
User avatar
sfernandez
Site Admin
Posts: 3222
Joined: 22 Dec 2011, 19:20

Re: ComboBox: strange behaviour when adding items

30 Apr 2014, 11:51

Thanks, I'll notify you about the status of this issue in the bugtracker.
 
golgepapaz
Posts: 43
Joined: 01 Aug 2013, 01:59

Re: ComboBox: strange behaviour when adding items

05 May 2014, 16:34

Same thing happens with treeview items also. I had to delay going into 1.1.7 . Still using 1.1.5
 
User avatar
sfernandez
Site Admin
Posts: 3222
Joined: 22 Dec 2011, 19:20

Re: ComboBox: strange behaviour when adding items

05 May 2014, 19:07

We fixed this issue and will be solved for the next release.
Please take a look at your private messages, I sent you one a moment ago.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 3 guests