or
@(Html.Kendo().MobileListView() .Name("listview") .TemplateId("tmp") .HeaderTemplateId("htmp") .DataSource(datasource => datasource .Read(r => r.Action("Study_Read", "Home").Data("searchparameter")) .PageSize(20) .ServerOperation(true) .Group(g => g.Add("PatientName", typeof(string))) ) )<script type="text/x-kendo-template" id="tmp"> <div data-role="content" style="width:100%;"> <table style="width:100%; border-width:2px;"> <tr style="border-width:thin;"> <td style="width:33%"> #=Description # </td> <td style="width:33%"> #=Modality # </td> <td style="width:33%"> #=StudyDate # </td> <td> <div style="background-color:WhiteBlue;"> Status Report </div> </td> <td style="right:0px; width:33%"> <div style="position:relative; right:0px;"> <a data-role="button" class="view" data-click="onClick" id="#=StudyId#">View</a> </div> </td> </tr> </table> </div> </script> <script type="text/x-kendo-template" id="htmp"> <p><h4> #= value #</h4> </p> </script>function advancedsearch(e) { var patientId = $("#txt_patient_id").val(); var patientName = $("#txt_patient").val(); var modality = $("#ddlModality option:selected").text(); var startDate = $("#start_date").val(); var endDate = $("#end_date").val(); var headerTemplate = kendo.template($("#htmp").html()); var template =kendo.template($("#tmp").html()); //var totalTemplate = headerTemplate.concat(template); alert(endDate) $.ajax({ type:"POST", url: '@Url.Action("Advanced","Home")', data:{ patientId: patientId, patientName: patientName, modality: modality, startDate: startDate, endDate: endDate }, success: function (evt) { console.log(evt); var dataSource = new kendo.data.DataSource({ pageSize:20, data: evt, schema: { data: "Data", total:"Total" } /*, change: function (e) { if (this.view()[0]) { console.log(template); $("#listview").html(kendo.render(template, dataSource.view())); kendo.mobile.init($("#listview")); } }*/ }); $("#listview").data("kendoMobileListView").setDataSource(dataSource); //dataSource.read(); //$("#listView").kendoMobileListView({ // dataSource: evt, // template: kendo.template($("#tmp").html()) //}); //$("#listview").kendoMobileListView({ // dataSource: evt, //template: $("#tmp").text() //}); //$("#listview").data('kendoMobileListView').dataSource.read(evt); } });}using System.Web.Mvc;using Kendo.Mvc.UI;public class ImageBrowserController : EditorImageBrowserController{ public override string ContentPath { get { return "~/Content/UserGenerated/Images"; } }}@using Business.Models@model Business.Models.UserContent<div class="full_width settings"> <h3 class="NieuwsEditor">Edit</h3> <p>Titel : @Html.TextBoxFor(m => m.Title, new { @class = "k-input k-textbox" }) </p> <p>Release Datum : @(Html.Kendo().DatePicker() .Name("ReleaseDate") .Min(new DateTime(1999, 1, 1)) .Max(DateTime.Today.AddYears(1)) .Value(Model.Release) ) </p> <p>Organistatie Eenheid : @(Html.Kendo().DropDownList() .Name("OrgEenheid") .HtmlAttributes(new { style = "width: 250px" }) .DataTextField("OEDescription") .DataValueField("OEID") .DataSource(source => { source.Read(read => { read.Action("GetMyOEs", "Manage"); }); }) .Value(Model.OrgEenheid.ToString()) ) </p> @(Html.Kendo().Editor() .Name("ContentEditor") .HtmlAttributes(new { style = "width: 740px;height:440px" }) .Tools(tools => tools .Clear() .Bold().Italic().Underline().Strikethrough() .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull() .InsertUnorderedList().InsertOrderedList() .Outdent().Indent() .CreateLink().Unlink() .InsertImage() .SubScript() .SuperScript() .TableEditing() .FontSize() .FontColor().BackColor() .ViewHtml() ) .StyleSheets(css => { css.Add(Url.Content("~/Content/css/style.css")); css.Add(Url.Content("~/Content/css/fonts.css")); }) .Value(Model.HTML) .ImageBrowser(imageBrowser => imageBrowser .Image("~/Content/UserGenerated/Images/{0}") .Read("Read", "ImageBrowser") .Create("Create", "ImageBrowser") .Destroy("Destroy", "ImageBrowser") .Upload("Upload", "ImageBrowser") .Thumbnail("Thumbnail", "ImageBrowser") ) .Encode(false) ) <p> <br /> <button id="SaveContent" type="button" class="k-button right" onclick="javascript:void(0)">Save</button> </p></div><script type="text/javascript"> $(document).ready(function () { $("#SaveContent").click(function () { var model = { ContentID: '@Model.ContentID', ContentTypeID: '@Model.ContentTypeID', OrgEenheid: $("#OrgEenheid").val(), UserId: '@Model.UserId', HTML: $("#ContentEditor").val(), Title: $('#Title').val(), Release: kendo.toString($("#ReleaseDate").data("kendoDatePicker").value(), 'yyyy-MM-dd'), UserContentType: { ContentTypeID: '@Model.UserContentType.ContentTypeID', Type: '@Model.UserContentType.Type', UserGenerated: '@Model.UserContentType.UserGenerated' } }; $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: JSON.stringify(model), url: '@Url.Action("SaveContent", "Manage")', timeout: 40000, // wait upto 40 secs success: function (result) { HandleAjaxResult(result); }, error: function (xhr, status, error) { $("#editor").html("<span class=\"error\">Error</span>"); } }) }); });</script>@(Html.Kendo().MobileListView<IDigitales.RadBook.Web.Models.StudyViewModel>() .Name("listview") .TemplateId("tmp") .HeaderTemplateId("htmp") .FixedHeaders(true) .Style("inset") .DataSource(datasource => datasource .Read(read => read.Action("Studies","Home").Data("searchparameter")) .PageSize(10) .Group(g=>g.Add(m=>m.PatientName)) ) )<script type="text/x-kendo-template" id="tmp"> <div data-role="content" style="width:100%;"> <table style="width:100%; border-width:2px;"> <tr style="border-width:thin;"> <td style="width:33%"> #: PatientName # </td> <td style="width:33%"> #: Modality # </td> <td style="width:33%"> #: StudyDate # </td> <td> <div style="background-color:WhiteBlue;"> Status Report </div </td> <td style="right:0px; width:33%"> <div style="position:relative; right:0px;"> <a data-role="button" class="view" data-click="onClick" id="#=StudyId#">View</a> </div> </td> </tr> <tr> <td> #: Description # </td> </tr> <table> <div></script> <script type="text/x-kendo-template" id="htmp"> #: PatientName #</script>