or
<!DOCTYPE html><html><head> <title>Pull to refresh</title> <script src="../../../js/jquery.min.js"></script> <script src="../../../js/kendo.mobile.min.js"></script> <script src="../../content/shared/js/console.js"></script> <link href="../../../styles/kendo.common.min.css" rel="stylesheet" /> <link href="../../../styles/kendo.mobile.all.min.css" rel="stylesheet" /></head><body> <a href="../index.html">Back</a> <div data-role="view" data-init="mobileListViewPullToRefresh" data-title="Pull to refresh"> <header data-role="header"> <div data-role="navbar"> <span data-role="view-title"></span> <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a> </div> </header> <ul id="pull-to-refresh-listview"></ul></div><script id="pull-to-refresh-template" type="text/x-kendo-template"> <div class="tweet"> #= TrackName # </div></script><script> function mobileListViewPullToRefresh() { var lastID; var dataSource = new kendo.data.DataSource({ serverPaging: true, transport: { read: { url: "http://sharedove.cld.sr/sahreconf2012/_vti_bin/ShareDoveRestService/ShareDove.svc/anonymous/GetSessions", // the remove service url dataType: "jsonp" // JSONP (JSON with padding) is required for cross-domain AJAX }, parameterMap: function(options) { var page = options.page; var parameters = { q: "javascript", since_id: lastID //additional parameters sent to the remote service } return parameters; } }, change: function() { var item = this.view()[0]; if (item) { lastID = item.id_str; } }, schema: { // describe the result format data: "AllSessions" // the data which the data source will be bound to is in the "results" field } }); $("#pull-to-refresh-listview").kendoMobileListView({ dataSource: dataSource, pullToRefresh: true, appendOnRefresh: true, template: $("#pull-to-refresh-template").text() }); }</script><style scoped> .tweet { font-size: .8em; line-height: 1.4em; } .pullImage { width: 64px; height: 64px; border-radius: 3px; float: left; margin-right: 10px; } .sublink { font-size: .9em; font-weight: normal; display: inline-block; padding: 3px 3px 0 0; text-decoration: none; opacity: .8; }</style> <script> window.kendoMobileApplication = new kendo.mobile.Application(document.body); </script></body></html>@(Html.Kendo().Grid(Model.CustomerOrderDetails) .Name("CustomerOrder") .Columns(columns => { columns.Bound(p => p.TransitionSN).Width(70); columns.Bound(p => p.DateOfPurchase).Width(140); columns.Bound(p => p.CustomerName).Width(140); columns.Bound(p => p.BrandName).Width(140); columns.Bound(p => p.Qty).Width(50); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(150); } ) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable.Mode(GridEditMode.PopUp)) .Pageable() .Sortable() .Scrollable() .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.TransitionSN)) .Read(read => read.Action("NewCustomer_Read", "CustomerOrder")) .Create(update => update.Action("NewCustomer_Create", "CustomerOrder")) .Update(update => update.Action("NewCustomer_Create", "CustomerOrder")) .Destroy(update => update.Action("NewCustomer_Create", "CustomerOrder"))) )public ActionResult NewCustomer() { return View(new NewCustomer { CustomerAddress = "", CustomerEmail = "", CustomerName = "", CustomerCode = "", CustomerOrderDetails = SQLOrder.SelectAll() }); //return View(); } public ActionResult NewCustomer_Read([DataSourceRequest] DataSourceRequest request) { return Json(SessionNewCustomerRepository.All().ToDataSourceResult(request), JsonRequestBehavior.AllowGet); //return Json(SQLOrder.SelectAll().ToDataSourceResult(request), JsonRequestBehavior.AllowGet); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult NewCustomer_Create([DataSourceRequest] DataSourceRequest request, CustomerOrder.Models.OrderDetails newcustomer) { if (newcustomer != null && ModelState.IsValid) { SessionNewCustomerRepository.Insert(newcustomer); } return Json(new[] { newcustomer }.ToDataSourceResult(request, ModelState)); }var treeSource = new kendo.data.HierarchicalDataSource({ schema:{ model:{ hasChildren:"HasChildren", children: "Items", id:"Id" } } $('#AjaxTreeView').kendoTreeView({ dataSource: treeSource, template: "#= item.Text # ", loadOnDemand: false, dragAndDrop: true, select: onSelect, drag: onNodeDragging});function onNodeDragging(e) { if (!isDropAllowed(e)) e.setStatusClass("k-denied");} <style> table,th, td { border: 1px solid silver; padding:0 2px; } </style> <p>This dynamic table:</p> <table> <thead> <tr><th>Col 1</th><th>Col 2</th></tr> </thead> <tbody> <tr><td>Data</td><td>ABC DEF</td></tr> <tr><td>Data</td><td>8/20/2012</td></tr> </tbody></table> <p>Would correspond to this dynamic filter table:</p><table> <thead> <tr><th rowspan="2">Field</th><th colspan="2">Filter 1</th><th rowspan="2">Logical Operator</th><th colspan="2">Filter 2</th></tr> <tr><th>Operator</th><th>Value</th><th>Operator</th><th>Value</th></tr> </thead> <tbody> <tr><th>Col 1</th><td>Contains</td><td>abc</td><td>Or</td><td>Contains</td><td>def</td></tr> <tr><th>Col 2</th><td>Is After</td><td>8/1/2012</td><td>And</td><td>Is Before</td><td>8/31/2012</td></tr> </tbody></table>