I have a listview defined as follows:
<div data-role=" listview"
data-template="template"
data-bind="source: people,
visible: isVisible,
events: {
change: onChange
}"
style="float:left; width:100%; height: 370px;display:block;overflow: auto">
</div>
now listview nicely shows my array of items but I need to update another view when the user selects a new row.My VM looks like:
var viewModel = kendo.observable({
isVisible: true,
onChange: function (){
debugger;
var data = dataSource.view(),
selected = $.map(this.select(), function (item) {
return data[$(item).index()].ProductName;
});
kendoConsole.log("Selected: " + selected.length + " item(s), [" + selected.join(", ") + "]");
},
onSave: function (e) {
kendoConsole.log("event :: save(" + kendo.stringify(e.values, null, 4) + ")");
},
person: {
Name:"John Doe"
},
.....
notice the debugger statement in the onChange function , well it is never hit as no idea what happened to the change event. I would have used Angular but
it has a problem that caused us to drop back to MVVM (Knockout). even if I make onChange a global function it does not fire.
Very confused
saveChanges: function (e) { // Turn on progress animation this._progress(true); var that = this; this.dataSource.one("change", function (e) { // Turn off progress animation that._progress(false); });Hello, I would like to show/hide tabs on a grid detail template based on grid value:
do anyone achieved something similar?
Best Regards
<script id="template" type="text/kendo-tmpl">@(Html.Kendo().TabStrip() .Name("tabStrip_#=ID#") .SelectedIndex(0) .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In))) .Items(items => { //if current grid row field #ShowExpected# items.Add().Text("Expected Items").Content(@<text>show a grid containing expected items</text>); //if current grid row field #ShowReceived# items.Add().Text("Received Items").Content(@<text>show a grid containing received items</text>); }) .ToClientTemplate())</script>

Hi Telerik Team,
I have a requirement in the scheduler like when I mousedown and select few cells in the scheduler and on mouseup the add event window should open with the start and end shown from the selected cells.
I tried the below code by seeing in the forumns
scheduler.wrapper.on("mouseup", ".k-scheduler-table td, .k-event", function (e) {
//code to open
});
but this is working only once but when I re select the cells the mouseup is working and the default behaviour is also removed.
Thanks,
Hi Telerik team.
I use your Editor and I have some issues with Image Browser:
1. I need select multiple Images in ImageBrowser, but now it is only one Image selected. Is multiple selection possible?
2. When I try to Drag&Drop multiple images from some folder in a PC to an Image Browser - only one image is inserted. Is it possible to drop multiple Images?
Thanks.