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
160
igCombo DataSource not updating from a one element array to another one element array
posted

I think I might have found a bug with the igCombo, but I'll let you decide.

When using knockout binding and an observableArray as a datasource and the datasource is set with a one element array

     var myArray = [{Id: 1, Name: "Item 1"}];

     self.DataSource = ko.observableArray(myArray);

Then you set the observableArray to another one element array, the igCombo does not update.

     var mySecondArray = [{Id: 2, Name: "Item 2"}];

     self.DataSource(mySecondArray);

Sample is attached.

igComboEx.zip

Parents
No Data
Reply
  • 4315
    Offline posted

    Hi, Justin.

    You are correct this is a bug - thank you for finding it! It's the case when new data source length is the same as the old one. As you see when you add all data source to the combo - it is working.

    I've already logged the issue in our GitHub repository and we will work on fixing it. You can follow it's progress there and add comments if you want. I will also add updates on when the fix will be done and when it will be available. Please note that the fix will be available only for the version we support - 18.1, 18.2 and 19.1.

    Thank you for using our product!

    Best regards,

    Nikolay Alipiev

    Software Developer

Children