or
$("#input").data("kendoAutoComplete").value("");
//create AutoComplete UI component$("#input").kendoAutoComplete({ dataSource: data, filter: "startswith", placeholder: "Select country...", select: function(e) { var dataItem = this.dataItem(e.item.index()); $('#list').append("<li>" + dataItem + "</li>"); $("#input").data("kendoAutoComplete").value(""); }});{ "name": "object1", "image": "IMAGE_UID_SPECIFIER" }$("#tree").kendoTreeView({
@(Html.Kendo().Grid<Biblioteka.ViewModels.BookViewModel>() .Name("BooksKendoGrid") .Columns(columns => { columns.Bound(p => p.Title); columns.Bound(p => p.Author); columns.Bound(p => p.GenreName); columns.Bound(p => p.ReleaseDate).Format("{0:d}"); columns.Bound(p => p.ISBN); columns.Bound(p => p.BorrowCount); columns.Bound(p => p.RealBookCount); columns.Bound(p => p.AddDate).Format("{0:d}"); columns.Bound(p => p.ModifiedDate).Format("{0:d}"); columns.Bound(p => p.BookId).Width(150).ClientTemplate("<input type=\"button\" value=\"Edit #= Title #\" style=\"width : 100px;\" onclick=\"openEditWindow(#= BookId #)\"/>"); }) .Pageable() .Sortable() .Scrollable() .Filterable() .HtmlAttributes(new { style = "height: 200px" }) .DataSource(dataSource => dataSource .Ajax() .PageSize(2) .Model(model => { //The unique identifier (primary key) of the model is the ProductID property model.Id(p => p.BookId); }) .Read(read => read.Action("BooksKendoGridRead", "Raports") )
) )<!DOCTYPE html><html><head> <title>TEST</title> <script src="cordova-2.2.0.js"></script> <script src="js/jquery.min.js"></script> <script src="js/kendo.mobile.min.js"></script> <link href="css/kendo.common.min.css" rel="stylesheet" /> <link href="css/kendo.mobile.all.min.css" rel="stylesheet" /></head><body> <div id="div1" data-role="view" data-title="Hello World"> <h2>Hello App</h2> <ul data-role="listview" data-style="inset" data-type="group"> <li>Please select: <ul> <li data-icon="play"><a href="Page1.html">Page 1</a></li> <li data-icon="play"><a href="#" onclick="test1();">Test</a></li> </ul> </li> </ul></div> <script> window.kendoMobileApplication = new kendo.mobile.Application(document.body); function test1() { alert('hello there...'); } </script> </body></html>grid.dataSource.filter([ { field: "Name", operator: "startswith", value: "0" }, { field: "Name", operator: "startswith", value: "2" }, { field: "Name", operator: "startswith", value: "3" }, { field: "Name", operator: "startswith", value: "4" }, { field: "Name", operator: "startswith", value: "5" }]); <script type="text/x-kendo-template" id="recentPostListViewTemplate"> <div id="#= id #" data-role="touch" data-tap="myTouch.tap">#= title #</div> <div class="articleBody" id="body-#= id #"> #= content #<br> <a href=#= custom_fields.syndication_permalink[0] #>Read Full Story</a> </div> </script>window.myTouch = { tap : function(e) { var id = e.touch['target']['context']['id']; console.log(id); $('#body-' + id).toggle(); }}