JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.2.710/styles/kendo.mobile.all.min.css">
<div data-role="view" id="foo" data-init="fooInit">
<ul id="list1"></ul>
</div>
<div data-role="view" id="bar" data-init="barInit">
<a data-role="button" href="#foo">Go Back</a>
<ul id="list2"></ul>
</div>
CSS
#list1 a {
float: right;
}
JavaScript
var app = new kendo.mobile.Application(document.body),
dataSource2 = new kendo.data.DataSource({
data: [
{detail: "Detail1", value: 1},
{detail: "Detail2", value: 2},
{detail: "Detail3", value: 3},
{detail: "Detail4", value: 4},
{detail: "Detail5", value: 5},
{detail: "Detail6", value: 6},
{detail: "Detail7", value: 7}
]
});
function fooInit() {
$("#list1").kendoMobileListView({
dataSource: new kendo.data.DataSource({
group: { field: "BeginDate", dir: "asc" },
transport: {
read: {
url: "http://svn.freece.com/api/Events",
dataType: "json"
}
},
schema: {
model: {
fields: {
ID: { type: "string" },
BeginDate: { type: "string" },
Cost: { type: "string" },
EndDate: { type: "string" },
EndTime: { type: "string" },
EventType: { type: "string" },
StartTime: { type: "string" },
SupportedBy: { type: "string" },
Title: { type: "string" }
}
}
},
}),
template: 'Item: #= item #',
click: onClick
})
}
function barInit() {
$("#list2").kendoMobileListView({
dataSource: dataSource2,
template: 'Detail: #= detail #'
})
}
function onClick(e) {
var item = e.dataItem;
dataSource2.filter({ field: "value", operator: "eq", value: item.value });//filter
app.navigate("bar"); //navigate to another view
}