Hello,
I have a "selectedProject" property on a ViewModel. This property is initially defined as "null". Eventually, this property will be set to an instance of an object locally defined as kendo.data.Model, having an array of "users".
Now, I am adding the following:
<div data-template="row-user-info-template" data-bind="source: selectedProject.users"></div>
Initially the selectedProject is null and hence users is undefined. That's why I am getting this exception:
"Uncaught TypeError: undefined has no properties"
Any idea how to workaround this issue?
Thanks
I have a "selectedProject" property on a ViewModel. This property is initially defined as "null". Eventually, this property will be set to an instance of an object locally defined as kendo.data.Model, having an array of "users".
Now, I am adding the following:
<div data-template="row-user-info-template" data-bind="source: selectedProject.users"></div>
Initially the selectedProject is null and hence users is undefined. That's why I am getting this exception:
"Uncaught TypeError: undefined has no properties"
Any idea how to workaround this issue?
Thanks