Please note that via your forum thread here (I assume this is you), this is not yet a supported scenario, BUT...
You can pull it off with some creativity keeping in mind that you are really circumventing the way the ListView is supposed to work and therefore you may or may not get some fringe anomalies that you have to deal with.
Here is the completed solution...
http://jsfiddle.net/vvCHX/30/
A few things of note:
- I updated your script references to the latest version of Kendo UI (2012.3.1114)
- Instead of using a ListView and populating it with other ListViews, I changed it so your DataSource appends the template to the DOM when the DataSource is read via the change event.
- As was stated in the forum thread, you cannot nest an input inside of an anchor because that is by definition malformed HTML. What you can do instead is use a span tag and give it the same classes that the anchor gets. You listen to the click event and check the e.target of the event. If it's the list item, then you can navigate to the next view. If it isn't, then you do nothing and just let the switch do its thang.
So now the initFileGroupsList function looks just so:
function initFileGroupsList(e) {
// compile the template
var template = kendo.template($("#fileGroupsItemTemplate").html());
// create a new datasource
var fileGropsRemoteDS = new kendo.data.DataSource({
data: [{"__type":"JsonFileTypeGroup:#" .... }],
change: function() {
// the 'change' function is called when the datasource reads
// replace the 'dynamic' plaholder div with the output of the template
$("#dynamic").replaceWith(kendo.render(template, this.view()));
// create the listview widgets
$(".listview").kendoMobileListView({
style: "inset",
click: function(e) {
// when the listview is clicked, get the item that was actually
// clicked in the DOM and wrap it in jqueries
var item = $(e.target);
// if the item has the 'clickable' class..
if (item.hasClass("clickable")) {
// set its style to highlight the item blue
item.addClass("km-state-active");
// navigate to the next view
app.navigate("#aboutView");
}
}
});
$(".switch").kendoMobileSwitch();
}
});