New to Telerik UI for ASP.NET Core? Download free 30-day trial

DropDownList Cannot Preselect the Drop-Down ID of the Current Grid Row


Product Grid for Progress® Telerik® UI for ASP.NET Core
Product Version 217.2.621


I cannot get the DropDownList to preselect the drop-down ID of the current row. How can I bind it to the column value when the Grid for ASP.NET Core is in edit mode?

Steps to Reproduce

This is a logged issue. The Core helpers duplicate the property name when the DropDownList() and Name() declarations are used. For more information, refer to this issue.

Suggested Workarounds

Telerik UI for ASP.NET Core does not provide a built-in solution for achieving this behavior. However, you can still work around the issue by using a .DropDownListFor(m => m) definition.

@model Project.Models.StateProvinceRegionViewModel

@(Html.Kendo().DropDownListFor(m => m)
    .DataSource(d => d
        .Read(r => r.Action("GetStateProvinceRegions", "Admin"))

See Also

In this article
Not finding the help you need? Improve this article