Last Updated: 03 Jul 2019 11:47 by ADMIN
Release 1.3.0
Created on: 30 May 2019 09:14
Category: DropDownList
Type: Feature Request
TelerikDropDownList should accept lists of scalar as data source

Posting this feature request as per your suggestion in my original forum post at:

I would like the DropDownList component to support lists of scalar values as data source. I.e:

<TelerikDropDownList Data="@MyList" bind-Value=@MyItem>

@functions {
    protected List<string> MyList = new List<string>() { "a", "b", "c" };
    protected string MyItem { get; set; } = "b";

The DropDownList would infer the scalar type from the Data property. The TextField items shown in the list (and the associated ValueField) would be the same: i.e. the value of each scalar in the list.