Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Does anyone have an example for the kendoDropdownList that uses the MVC Core tag helper, and uses local binding? The tag helper sample in the demos binds to remote data only. Thanks!
<kendo-dropdownlist name=
"orders"
datatextfield=
"Text"
datavaluefield=
"Value"
filter=
"FilterType.Contains"
bind-to=
"Model.Countries"
>
</kendo-dropdownlist>
public
IActionResult Index()
{
var homeData =
new
HomeViewModel()
Countries = GetCountries()
};
return
View(homeData);
}
IList<SelectListItem> GetCountries()
var countries =
List<SelectListItem>
SelectListItem { Value =
"MX"
, Text =
"Mexico"
},
"CA"
"Canada"
"US"
"USA"
countries;