Multiple objects and custom data factory / propertyaccessors

Grids for WPF Forum

Posted 10 years ago by RS
Version: 4.5.0485
Avatar
We're using a custom data factory (derived from DataFactory) and some custom PropertyAccessor classes (derived from CachedPropertyDataAccessorBase) to populate our property grid. Our PropertyAccessor classes return custom name templates and this works just fine when a single object is selected. However, when multiple objects are selected the fallback plain name template is used. Other than that the property merging works fine.

Is there something special we need to do in our datafactory or propertyaccessors to have the custom name template used when multiple objects are selected?

RS

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
There is an issue with the MergedPropertyDataAccessor, with respect to the name template. The MergedPropertyDataAccessor is an accessor that merges 1 or more properties. Certain properties are aggregated (e.g. IsModified, Value), others are simply taken from the first property in the list (e.g. ValueTemplate). This accessor is not passing the NameTemplate/NameTemplateKey/NameTemplateSelector of the first property, as is the case with the value template properties.

I have corrected this for the upcoming maintenance release. If you need a more immediate fix, let us know.


Actipro Software Support

Posted 10 years ago by RS
Avatar
Great stuff, thanks for that. I'm happy to wait for the next update.

RS

The latest build of this product (v2018.1 build 0675) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.