Table of Contents

Class FilterIgnoreAttribute

Namespace
Kentico.Xperience.Admin.Base.Filters
Assembly
Kentico.Xperience.Admin.Base.dll

Can be used to ignore a property inside a filter model. The property will not directly affect the filtering process, but it will be displayed in UI and can be used for other purposes, such as visibility conditions.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class FilterIgnoreAttribute : Attribute
Inheritance
object
Attribute
FilterIgnoreAttribute
Extension Methods

Examples

public class CityFilterModel
{
    [FilterIgnore]
    [RadioGroupComponent(Label = "Filter by size or by name?", Options = "size;By size\r\name;By name")]
    public string FilterType { get; set; }

    [VisibleIfEqualTo(nameof(FilterType), "size")]
    [FilterCondition(BuilderType = typeof(CitySizeWhereBuilder))]
    [NumberInputComponent]
    public int? CitySize { get; set; }

    [VisibleIfEqualTo(nameof(FilterType), "name")]
    [FilterCondition(BuilderType = typeof(CityNameWhereBuilder))]
    [TextInputComponent]
    public string CityName { get; set; }
}

Constructors

FilterIgnoreAttribute()

public FilterIgnoreAttribute()