or
<!doctype html><html><head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.913/styles/kendo.common.min.css" type="text/css" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.913/styles/kendo.default.min.css" type="text/css" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.913/styles/kendo.dataviz.min.css" type="text/css" /></head><body> <div id="chart"></div> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://cdn.kendostatic.com/2012.3.1315/js/kendo.all.min.js"></script> <script type="text/javascript"> var getTestData = function (numberOfItems) { var arrayOfData = []; for (var count = 0; count < numberOfItems; count++) { arrayOfData.push({"Period":count,"ExPrice":0.3,"CumPrice":0.7}) } return arrayOfData; }; var arrayOfChartData = getTestData(30); var $priceHistoryGraphElement = $("#chart"); var before = new Date(); $priceHistoryGraphElement.kendoChart({ theme: $(document).data("kendoSkin") || "default", chartArea: { background: "" }, dataSource: { data: arrayOfChartData }, seriesDefaults: { type: "line" }, series: [ { field: "ExPrice" }, { field: "CumPrice" }], categoryAxis: { field: "Period", labels: { rotation: 285, margin: { left: -15}} } }); var after = new Date(); document.write("kendoChart call took " + Math.abs(after - before) + "ms to complete."); </script></body></html>I have an ASP.Net MVC Kendo UI combobox that is databound to a table with 1000's of records. I've set the MinLength property to 5 so I only return relevant results. The problem is, the user might need to change the text value all together. Is there a way to tell the control to refresh?
Here's the code for the control...
@(Html.Kendo().ComboBoxFor(x => x.Product)
.Name("Product")
.DataTextField("Name") // Display value
.DataValueField("Id") //Return value
.MinLength(5)
.AutoBind(false)
.Suggest(true)
.Filter(FilterType.Contains)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("Products", "Home").Data("onGetProducts");
});
})
)

$(document).ready(function() { var window = $("#window").clone(); //var window = $("#window"); --this works var onClose = function() { $("html, body").css("overflow", ""); } var onOpen = function() { $("html, body").css("overflow", "hidden"); } if (!window.data("kendoWindow")) { window.kendoWindow({ actions: ["Custom", "Refresh", "Maximize", "Minimize", "Close"], width: 900, height: 600, iframe: true, title: "Report Hours", content: "tunnit.free.add.cfm?start="+start+"&end="+end, close: onClose, open: onOpen, modal: true }); window.data("kendoWindow").open(); window.data("kendoWindow").center(); } else { window.data("kendoWindow").open(); window.data("kendoWindow").center(); }});