This is a migrated thread and some comments may be shown as answers.

Combobox does not showing text

3 Answers 316 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Oksana
Top achievements
Rank 1
Oksana asked on 19 Jan 2017, 10:52 PM

I have combobox control on Angular 2 project. but after set value for it, the text does not show up, but the option in the dropdown gets selected. here is the code:

=====================

<kendo-combobox spellcheck="false" *ngIf="editable" [data]="filteredEarningTypes" [textField]="'DisplayName'" [valueField]="'Code'" [value]="selectedEarningType"
[valuePrimitive]="false" 
(selectionChange)="earningTypeChange($event)" >
<template itemTemplate let-dataItem>
{{ dataItem.Code }} - {{ dataItem.Name }}
</template>
</kendo-combobox>

=====================

screen shot attached. can someone help please?

Thanks

 

 

3 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 20 Jan 2017, 03:13 PM
Hi Oksana,

I tried reproducing this here, but to no avail. Would be able to set up a small Plunkr example?

Regards,
Alexander Popov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Oksana
Top achievements
Rank 1
answered on 20 Jan 2017, 06:51 PM

Its not straight forward to reproduce the problem,  basicly I have a list of records and by click one of them, a form opens with some comboboxes filled with data, all the inputs loaded with texts from the dropdown of the combobox.  Its ok when the1st time click and  open the form, it loads everything , then if I close it and open an empty form (with same fields), select same option and then close the form and then close it, then open a new form again without filling anything, and then click on the record to open it, then somehow, the value in the dropdown list gets selected but it does not show the text in the input of combobox. It looks like the combobox does not think the selection changed and does not update it.

I know its hard to debug if I don't give you the exact same thing I have, but its a heavy page with lot of data loading from serve. 

0
Alexander Popov
Telerik team
answered on 24 Jan 2017, 04:09 PM
Hello again Oksana,

I'm still struggling to reproduce this scenario. Could you show some code snippets, even if they are not tied to actual data retrieval services? 

Regards,
Alexander Popov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ComboBox
Asked by
Oksana
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Oksana
Top achievements
Rank 1
Share this question
or