Hi
I have a ListView in a tabstrip with a button like the Sushi Demo and i want that when i click on the button the application open the detail view in the same view.
How can i do this?
thanks Elios
Just trying to accomplish the exact same thing.
However just looking at the demo code isnt really self explaining. Especially when trying to do this in MVVM-style.
Can't somebody give a simple clean MVVM-Tutorial on such a basic thing?
I dont really know if what I wrote is how it's supposed to be ^^'
Here's what I did so far:
defining a viewModel with a dataSource
varproductDS = newkendo.data.DataSource({
transport: {
read: {
url: '/get.php',
dataType: 'jsonp',
data: {
type: 'products'
}
}
},
pageSize: 10,
serverpaging:true
})
varproductViewModel = kendo.observable({
productList: productDS
});
defining a function for fetching the details (taken from the sushi-demo)
functionshowProductDetail(e) {
varview = e.view;
productDS.fetch(function() {
varmodel = view.model,
item = productDS.get(view.params.id);
model.set("product", item)
});
}
and finally getting everything together in the template