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
600
Angular2 igCombo input text disappears after dataSource changed (rebind) at runtime
posted

Hi,

the igCombo input text disappears when the dataSource was changed at runtime. After every keystroke i call the search engine to get the new result data based on the current input text and then i rebind the igCombo. The valueKey and textKey stays the same. The "allowCustomValue" option is set to TRUE. The expected behavior is that the input text should remain after a rebind if this option is set. The goal is a auto complete search with suggestions like google. Every search request take approximately 20 - 40 milliseconds to finish. The dataSource will be set in the view directly => [(dataSource)]="comboDataSource".

This are my options:

this.comboOptions = {
            valueKey: 'recordId',
            textKey: 'recordName',
            autoComplete: true,
            virtualization: true,
            visibleItemsCount: 5,
            allowCustomValue: true,
            autoSelectFirstMatch: false,
            width: '100%'
        };

Is it a bug or is it a wrong usage?