Hello, I have
viewModel which is
observable .
var
viewModel = kendo.observable({
data: vmJson,
selected:
null
});
there is
mvvm grid which is bind to viewModel.data and on
click there is
function which executes
below code:
this
.set(
"selected"
,e.data)
the "selected" is also
binded to div which has
textbox and some grids in kendo template. Whenever
i update using
this.selected.set("name",personname)
1) on
execution of above the selected Div which is
binded gets hidden. The div is inside kendo template and no visible binding are
mentioned . When
i execute
$(div).show() in
console the div is seen and values are updated. There is something wrong in
set method of selected?
2) for nested set
values , which one is right:
this.selected.address.set("pin",pincode)
OR
this.selected.set("address.pin",pincode)