JSFiddle - React, Tailwind, and code Playground

by valchev

HTML

<script src="http://cdn.kendostatic.com/2012.1.515/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.default.min.css">
<input id="amortizationType" />

JavaScript

$("#amortizationType").kendoDropDownList({
    dataTextField: "Text",
    dataValueField: "Value",
    optionLabel: "Select one",
    index: 3, //sets initially selected item
    dataSource: {
        type: "json",
        transport: {
            read: {
                url: "/echo/json/",
                dataType: "json",
                type: "POST",
                data: {
                // /echo/json/ echoes the JSON which you pass as an argument
                    json: JSON.stringify([
                        { Text: "Item1", Value: 1 },
                        { Text: "Item2", Value: 2 },
                        { Text: "Item3", Value: 3 },
                        { Text: "Item4", Value: 4 },
                        { Text: "Item5", Value: 5 },
                    ])
                }
            }
        }
    }
});