Hi,
with data annoations (DisplayAttribute) it is possible to create custom descriptions for the filtered properties. But unfortunately the DisplayAttribute is sealed. So it is not possible to inherit from this Attribute to implement internationalization from resource files. (I did something equal with the DescriptionAttribute which is not sealed). Is it possible to create custom property descriptions in a different way? Perhaps with ItemPropertyInfo class? At first sight it seems that it is not possible. In constructor of ItemPropertyInfo you can set name, type and descriptor. Name is obviously used for creating FilterDescriptors so the name must represent the real path to the property and could not be a user readable name. The type is the type ;-) And the descriptor is a PropertyInfo instance which contains the real name of the property again. Is there a way to accomplish my request?
Best regards,
Oliver
with data annoations (DisplayAttribute) it is possible to create custom descriptions for the filtered properties. But unfortunately the DisplayAttribute is sealed. So it is not possible to inherit from this Attribute to implement internationalization from resource files. (I did something equal with the DescriptionAttribute which is not sealed). Is it possible to create custom property descriptions in a different way? Perhaps with ItemPropertyInfo class? At first sight it seems that it is not possible. In constructor of ItemPropertyInfo you can set name, type and descriptor. Name is obviously used for creating FilterDescriptors so the name must represent the real path to the property and could not be a user readable name. The type is the type ;-) And the descriptor is a PropertyInfo instance which contains the real name of the property again. Is there a way to accomplish my request?
Best regards,
Oliver