Hello,
I have viewModel and model that has additional property. Following Statements get executed
I have viewModel and model that has additional property. Following Statements get executed
$.extend(viewModel, kendo.observable(model));var RData = viewModel.Receipts;var TstDataSource = new kendo.data.DataSource({ data: RData, group: [{ field: "Code", dir: "asc" }] });viewModel.set("Receipts",TstDataSource);RefreshServiceElements();kendo.bind($("#Container"), viewModel);
On viewModel.set("Receipts",TstDataSource); , i get error maximum call stack size exceeded.
Receipts property is bind to Grid in MVVM
When i use viewModel.Receipts=TstDataSource it works, i just wanted to know why it works . And then should i update the Item in Receipts using 'set' or '=' ?
P.S: viewmodel is not global
