kendo ui dropdownlist mvc

kendo ui dropdownlist

Hello everyone, i'm going to share the code sample for create Kendo UI DropDownList

Table of Constants

1. Kendo ui  Dropdownlist by using MVC API and jquery.

2. Kendo ui  Dropdownlist by using MVC 5 and MVC ViewBag

Kendo ui dropdownlist by using API and jquery

 public class TenantController : Controller
        public IEnumerable<Tenant> GetTenants()
            List<Tenant> objTenant = new List<Tenant>();
                objTenant = GetTenantFormDB().ToList();
                ViewBag.Tenant = objTenant;
            catch (Exception ex) {
             //TODO: log error in db.
            return objTenant;


        optionLabel: "Please select a tenant...",
        dataTextField: "Name",
        dataValueField: "ID",
        dataSource: {
            type: "json",
            serverFiltering: true,
            transport: {
                read: "http://localhost:80/API/Tenant/GetTenants"
        change: function change(e) {
            //TODO : bindCompanyByTenantId(this._selectedValue);

The url (http://localhost:80/API/Tenant/GetTenants) call the API controller and return back the result and bind data source.

Kendo ui  dropdownlist by using MVC 5 and MVC ViewBag

    .HtmlAttributes(new { })
    .OptionLabel("Please select a tenant...")

For more details you can visit below discussion links..


Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog -
My Books - Book 1 and Book 2

kendo ui dropdownlist kendo ui dropdownlist Reviewed by Anil Singh on 10:28 AM Rating: (5) Powered by Blogger.