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

ComboBox bind-Value

2 Answers 327 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Giampaolo
Top achievements
Rank 1
Veteran
Giampaolo asked on 13 Apr 2020, 03:54 PM

Hi

I've put a TelerikComboBox inside a TelerikWindow not visible by default.

<TelerikComboBox Data="@ListaUnMis"
                                         Filterable="false"
                                         Placeholder="Selezione Unotà di Misura"
                                         @bind-Value="@selectedProduct.CodUnMis" TextField="@nameof(CMD_UnMis.Descrizione)"
                                         ValueField="@nameof(CMD_UnMis.CodUnMis)" AllowCustom="false" >
                        </TelerikComboBox>

In a grid when I click an edit button I open the modal TelerikWindow and set the selectedProduct.

...but .... the inital valu is not displayed. Remain only blank.

Using TelerikDropDownList all works fine.

Tnx

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 14 Apr 2020, 06:34 AM

Hi Giampaolo,

Can you confirm you have upgraded to 2.10.0? There was an issue in 2.9.0 with the selected text of the combo box that has been fixed. I am also attaching here a simple component I built on top of this code that seems to work on my end so you can test it with 2.10.0 to see if it works for you. If not, please post here the modification that will break it.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Accepted
Giampaolo
Top achievements
Rank 1
Veteran
answered on 14 Apr 2020, 07:47 AM

Really tnx

Upgrading to 2.1 now works

tnx

Tags
ComboBox
Asked by
Giampaolo
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Giampaolo
Top achievements
Rank 1
Veteran
Share this question
or