Hi, I was wondering if anyone could help with an issue I am having with the mobile list view on anything but the iPhone.
I have a page that has a MVC grid on it and a mobile listview on it. The MVC grid is hidden when the size of the screen comes down and is hidden with media queries for responsiveness.
The code is below, but this only appears to work on the iPhone. The Android devices don't appear to show anything except the loading symbol?
I have a page that has a MVC grid on it and a mobile listview on it. The MVC grid is hidden when the size of the screen comes down and is hidden with media queries for responsiveness.
The code is below, but this only appears to work on the iPhone. The Android devices don't appear to show anything except the loading symbol?
@{
ViewBag.Title = "Racing Selections";
}
<
h2
>@ViewBag.Message</
h2
>
@(Html.Kendo().Grid<
EachWayRatings.Models.spFetchQualifiers_Result
>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.RH_DateTime).Title("Race Time").Format("{0:HH:mm}").Hidden(true);
columns.Bound(p => p.Course).Title("Course");
columns.Bound(p => p.H_Name).Title("Horse");
columns.Bound(p => p.Selection);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetRaces", "Home"))
.PageSize(100)
.Group(group => group.Add(o => o.RH_DateTime))
)
.Pageable()
)
<
div
id
=
"mobile-wrapper"
>
<
div
id
=
"mobile"
>
<
div
data-role
=
"view"
id
=
"grouped"
data-init
=
"mobileListViewDataBindInitGrouped"
data-transition
=
""
data-title
=
"ListView"
data-layout
=
"databinding"
>
<
ul
id
=
"grouped-listview"
></
ul
>
</
div
>
</
div
>
</
div
>
<
script
>
function mobileListViewDataBindInitGrouped() {
var ds = kendo.data.DataSource.create({
schema: {data: 'Data'},
transport: { read: { url: "/Home/GetMobileRaces", dataType: "json" } },
group: "racetime"
});
$("#grouped-listview").kendoMobileListView({
dataSource: ds,
template: "${name}",
fixedHeaders: true
});
}
</
script
>
<
script
>
var app = new kendo.mobile.Application('#mobile');
</
script
>