Hello everyone's, I'm getting an JS error when I want implement an group function into the MobileListView, I'm not sure what I need do to fix it, and it is only showing with the group method, this error happen in IE and Chorme and Firefox
This the error:
Unhandled exception at line 11, column 1845 in http://localhost:65186/Scripts/Kendo/kendo.mobile.min.js
Uncaught TypeError: Cannot read property 'length' of undefined
This is my Mobile List View
and these are my templates:
This the error:
Unhandled exception at line 11, column 1845 in http://localhost:65186/Scripts/Kendo/kendo.mobile.min.js
Uncaught TypeError: Cannot read property 'length' of undefined
This is my Mobile List View
@(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)) ) )and these are my templates:
<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>