Each of my records has a complex property "Child" which is a single object (not IEnumerable).
I want rows to be expandable with custom editor showing contents of "Child" property when expanded.
I have assigned ExpandableFieldRecordPresenterStyle and set IsExpandable=True on "Child" field.
According to documentation:
"If the associated Field's DataType implements the IEnumerable interface (...) Otherwise, the NestedContent will contain an ExpandedCellPresenter with the actual cell value."
Unfortunately even though expansion indicator is displayed, it does not work. When I click on it nothing is expanded and the expander just disappears completely.
Thanks, the issue was resolved in latest service release.
HI marcinwis,
I will have the developers look into this issue.
I will create a private case for this issue and will email you shortly with the details.
Sincerely.
Matt Developer Support Engineer
No, this just binds to row object and needs explicit reference to "Child" property even though that column is already set to be bound to BindingPath="Child".
I want to bind to the value of column, like NestedContent.Value.
HI Marcinwis,
The issue with the sample was that the binding on the ContentControl in the childPresenter template needs to be bound to object that is being changed in order to receive change notifications. Previously a converter was being called to the value and since the existing binding to “NestedContent” did not raise a property changed notification, the button’s content was not re-evaluated when the name changed. To resolve this issue, the binding for the childpresenter can be changed to bind directly to the changing field: NestedContent.Record.DataItem.Child
Please see modified sample.
Sincerely,
Matt
Developer Support Engineer
Unfortunately this solution does not react to model changes (when INotifyPropertyChanged is added to model).
Updated sample, try pressing "Change Child Instance".