1
Vote

Metadata for DynamicFilterRepeater are not considered when implemented via a class

description

Metadata for DynamicFilterRepeater are not considered when they are implemented via a class, instead they are when implemented via an inteface. See examples below.
 
This does work:
interface CustomerMetadata
{
[Filter(FilterMode = FilterControlMode.Contains)]
string CustomerCode { get; set; }
}
 
This does NOT work:
class CustomerMetadata
{
[Filter(FilterMode = FilterControlMode.Contains)]
string CustomerCode { get; set; }
}
 
This is a big problem, since some standard Metatada (ie: DisplayColumn) cannot be applied to interfaces.

comments

MatteoSp wrote Mar 2, 2009 at 5:10 PM

Sorry, I solved it: when you using a class you must use the "public" modifier. So:

This does work:
class CustomerMetadata
{
[Filter(FilterMode = FilterControlMode.Contains)]
public string CustomerCode { get; set; }
}

wrote Feb 14, 2013 at 2:41 AM