Kendo Grid and Chart
by OnaBai
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1315/styles/kendo.common.min.css">
<script src="http://cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.3.1315/styles/kendo.default.min.css">
<div>
<a href="#" id="value" class="k-button">Set Value</a>
<a href="#" id="text" class="k-button">Set Text</a>
<a href="#" id="show" class="k-button">Show</a>
</div>
<input id="combobox"/>
JavaScript
$("#value").on("click", function () {
combobox.value(4);
});
$("#text").on("click", function () {
combobox.text("Chef Anton's Cajun Seasoning");
});
$("#show").on("click", function () {
alert("Current text/value: " + combobox.text() + "/" + combobox.value());
});
var combobox = $("#combobox").kendoComboBox({
dataTextField : "ProductName",
dataValueField: "ProductID",
dataSource : {
type : "odata",
transport: {
read: "http://demos.kendoui.com/service/Northwind.svc/Products"
}
}
}).data("kendoComboBox");