Name | Description |
---|---|
StaticCustomFilter | Supplies you with a base class to build a static custom filter. This allows you to add filters to the filter control where these filters are not associated with a particular property in the filter control. A typicall example is where the grid must show only the Assets that have not been disposed off. |
StringLiteralCustomFilter | Builds a StringLiteralFilterClause with the StringLiteral. See StringLiteralFilterClause for a detailed explanation. |
StringLiteralFilterClause | This is supplies a IFilterClause that can be supplied any string literal. The GetFilterClauseString will then supply the StringLiteral exactly as is. This is typically used when you want to build a custom static filter clause which is more complex than a set of filters Anded. E.g. (ParentID is null Or ParentID != 'fdafdas') and AssetID != 'fdafdas'). The potential limitations of using this is that you may limit the databases that this will port to. (In cases where the IFilterControl is being used in IFilterControl.FilterMode = FilterModes.Search. This is typically used by the StringLiteralCustomFilter but can also be used independently public class ExcludeAssetCustomFilter : StaticCustomFilter { public override IFilterClause GetFilterClause(IFilterClauseFactory filterClauseFactory) { var stringLiteral = ""; if (AssetID != null) { stringLiteral = string.Format("AssetID <> '{0}'", AssetID.GetValueOrDefault().ToString("B")); } return new StringLiteralFilterClause(stringLiteral); } public Guid? AssetID { get; set; } } |