or
01....02. 03.<div data-role="view" data-layout="root" data-id="student" data-init="viewInit">04. <ul data-role="listview" data-style="inset">05. </ul>06.</div>07. 08. 09.<section data-role="layout" data-id="root">10. <header data-role="header">11. <div data-role="navbar">myapp</div>12. </header>13. 14. <footer data-role="footer">15. </footer>16.</section>17. 18.<script>19. var dataSource = new kendo.data.DataSource({20. transport: {21. read: {22. url: "@Url.Action("IndexJson", "Student")",23. contentType: "application/json; charset=utf-8",24. dataType: "json",25. type: "GET"26. }27. }28. });29. dataSource.read();30. function viewInit() {31. $("#listview").kendoMobileListView({32. dataSource: dataSource,33. template: $("#datatemplate").text()34. });35. }36. 37.</script>38. 39.<script type="text/x-kendo-tmpl" id="datatemplate">40. <div><a data-role="detailbutton" data-style="detaildisclose"></a><h3>${Name}</h3></div>41.</script>42. 43. 44. <script>45. //alert("kendo.mobile.Application");46. var app = new kendo.mobile.Application(document.body,47. {48. transition: 'slide'49. });50. </script>01....02. 03.<div data-role="view" data-layout="root" data-id="student">04. <ul data-role="listview" data-style="inset" data-source="dataSource" data-template="datatemplate">05. </ul>06.</div>07. 08.<section data-role="layout" data-id="root">09. <header data-role="header">10. <div data-role="navbar">myapp</div>11. </header>12. 13. <footer data-role="footer">14. </footer>15.</section>16. 17.<script>18. var dataSource = new kendo.data.DataSource({19. transport: {20. read: {21. url: "@Url.Action("IndexJson", "Student")",22. contentType: "application/json; charset=utf-8",23. dataType: "json",24. type: "GET"25. }26. }27. });28.</script>29. 30.<script type="text/x-kendo-tmpl" id="datatemplate">31. <div><a data-role="detailbutton" data-style="detaildisclose"></a><h3>${Name}</h3></div>32.</script>33. 34. <script>35. //alert("kendo.mobile.Application");36. var app = new kendo.mobile.Application(document.body,37. {38. transition: 'slide'39. });40. </script>
<!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");
});
})
)