i Kendo Team
we have a viewmodel with a list of child records (bound with a template). To show and hide child records we use a function like the following:
Function;
Visible: function (e) {
if (this.parent().parent().get("DebitorFilter") == null || this.KUNNR == null)
return true;
else
return this.parent().parent().get("DebitorFilter") == this.KUNNR;
}
Binding: "<div class="LabelDetailTemplate" data-bind="visible: Visible">"
So far it's working as expected when adding new records, but if property KUNNR changes in the parent object the visible function of the child records is not called again and the items stays hidden.
What are we doing wrong or do we have to create a property "visible" and refresh it manually when the KUNNR has changed?
Thanks in advanced and best regards
Daniel
we have a viewmodel with a list of child records (bound with a template). To show and hide child records we use a function like the following:
Function;
Visible: function (e) {
if (this.parent().parent().get("DebitorFilter") == null || this.KUNNR == null)
return true;
else
return this.parent().parent().get("DebitorFilter") == this.KUNNR;
}
Binding: "<div class="LabelDetailTemplate" data-bind="visible: Visible">"
So far it's working as expected when adding new records, but if property KUNNR changes in the parent object the visible function of the child records is not called again and the items stays hidden.
What are we doing wrong or do we have to create a property "visible" and refresh it manually when the KUNNR has changed?
Thanks in advanced and best regards
Daniel