The commented part of the code does work, but when I try to group my own stuff it fails.
http://mobile.zuol.ch/api/t_links/getLinks
Is my group: simply at the wrong place or what am I doing wrong?
Markus
http://mobile.zuol.ch/api/t_links/getLinks
Is my group: simply at the wrong place or what am I doing wrong?
Markus
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 ..."
},
});
}