I selected by value the 4th element using the initialSelectedItems but the first element textKey happen to be overridden after such setting, because the first element is supposed to be "HP1_3Y" and not "HP21_3Y".
Only if I setup the first selection as the first item in list then the correct behaviour works, but that's not the required behaviour.
Behind the textKey overriding the function setted up as selectionChanged still reminds the right valueKey but the textKey is unusable, something that I need right now!PS: even if I setup only valueKey so both textKey and valueKey are of the same value, the problem still persists.
Dear Eugenio,
Thank you for contacting Infragistics support.
Could you send us a fiddle demonstrating this scenario? You could use the following fiddle as a starting point - http://jsfiddle.net/fxy872k0/. This would help us tell exactly what is the issue and how to overcome it.
We are looking forward to hearing from you.
https://jsfiddle.net/91tnbor3/9/Took me some effort to reproduce it, but I think I found the clue, initialSelectedItems seems don't work with provided items through a function call, like find().
And this misbehaviour happen even if you try to store in a const the desired value and then supplying it to initialSelectedItems
Hello Eugenio,
Thank you for your patience.
You should add an additional equals sign (=) when you compare the description:
data.find(d => d.Description == "HP21_3Y").Id
Here is a working sample: https://jsfiddle.net/19ujhfzq/
Please let us know if this resolves your issue.
I found it's even stranger! It doesn't work either as soon as there's the find() call on the array before the igCombo() call... what's going on o_O?