or
<
body
>
<
div
id
=
"mainPage"
class
=
"k-content"
data-role
=
"view"
>
<
a
data-role
=
"button"
href
=
"#example1"
>Test 1</
a
>
<
a
data-role
=
"button"
href
=
"#example2"
>Test 2</
a
>
</
div
>
<
div
id
=
"example1"
class
=
"k-content"
data-role
=
"view"
>
<
div
id
=
"grid1"
></
div
>
....
</
div
>
<
div
id
=
"example2"
class
=
"k-content"
data-role
=
"view"
>
<
div
id
=
"grid2"
></
div
>
.....
</
div
>
<
script
>
var app = new kendo.mobile.Application(document.body);
</
script
>
</
body
>
var
dataSource =
new
kendo.data.DataSource({
type:
"json"
,
transport: {
read: {
data:{
Accept:
"application/json"
},
group:{
field:
"Kategorie"
}
}
}
/* data: [
{ name: "Sashimi Salad", description: "Organic greens topped with market fresh sashimi, wasabi soy vinaigrette.", letter: "S" },
{ name: "Seaweed Salad", description: "A nice seaweed salad.", letter: "S" },
{ name: "Edamame", description: "Boiled soy beans with salt.", letter: "E" },
{ name: "Maguro", description: "Tuna pieces.", letter: "M" },
{ name: "Tekka Maki", description: "Tuna roll with wasabi.", letter: "T" },
{ name: "California Rolls", description: "Crab sticks, avocado and cucumber.", letter: "C" }
],
group: { field: "letter" } */
});
function
LinksListviewInit() {
$(
"#filterable-links"
).kendoMobileListView({
dataSource: dataSource,
template: $(
"#links-template"
).text(),
headerTemplate: $(
"#links-header-template"
).text(),
filterable: {
field:
"Kategorie"
,
operator:
"startswith"
,
placeholder:
"Tippen Sie hier um zu filtern ..."
},
});
}