Combobox Value not populate on load

1 Answer 42 Views
ComboBox
Jason
Top achievements
Rank 1
Jason asked on 01 May 2021, 03:56 PM

I have a simple combobox where the value is not populated on load:

<TelerikComboBox Value="@SelectedValue"
                 Data="@SourceColumns"
                 AllowCustom="true"
                 Width="100%" />

 

@SelecteValue is a string

@SourceColumns is an ObservableCollection<String>

If I switch it to a drop down list, the item is selected, however I need to be able to have custom values.

This seems pretty straight forward, and I am thinking I am missing something minor?

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 May 2021, 05:18 PM

Hi Jason,

There are two bugs in the combo box in 2.23.0 that will be fixed in the upcoming 2.24.0 (planned for mid-May) that I think might be relevant to your case:

  • about preselected value not showing up see here
  • about selected value not showing text when data is fetched asynchronously see here

If you recognize your scenario in one of these - you will get a fix for it when 2.24.0 is available. If you don't, please post a more comprehensive sample to showcase the problem so I can take a look.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jason
Top achievements
Rank 1
commented on 01 May 2021, 05:20 PM

That was exactly what was happening. I did find a workaround since it was a custom component, I added parameter attributes to the underlying model that contain the list data and that seems to have fixed the issue.
Marin Bratanov
Telerik team
commented on 02 May 2021, 06:55 AM

Happy to see you have found a solution.

Make sure to upgrade to 2.24.0 when it comes out in a couple of weeks, though, it should alleviate that and also bring in a ton of new stuff.

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