Title: ComboBox data-value relation Post by: chrwei on March 10, 2020, 10:02:53 AM I've got an issue where for various reasons my ComboBox value is getting set before the data object is populated. once the object is set, the displayed value does not update.
is that something the ComboBox should be handling, or do I need to do something different to make sure the value isn't set until the object is populated? Title: Re: ComboBox data-value relation Post by: stworthy on March 11, 2020, 12:15:42 AM Make sure the value exists in the data object. Once the data object is loaded, the displaying text will be updated according to the data object.
Another way to set the 'value' with 'text' on the ComboBox component is to call the 'setValue' method although the data object is not loaded yet. Code: this.combo.setValue({ value: 12, text: 'text12' }); Title: Re: ComboBox data-value relation Post by: chrwei on March 12, 2020, 06:05:10 AM ended up being a whitespace issue. thanks.
|