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
245
igCombo initialSelectedItems textKey overriding issue/bug
posted

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.

Parents
  • 2680
    Offline posted

    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.

  • 245
    Offline posted in reply to Tihomir Iliev

    https://jsfiddle.net/91tnbor3/9/
    T
    ook 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

Reply Children