[]
        
(Showing Draft Content)

C1.Blazor.DataFilter.C1DataFilter

C1DataFilter Class

The C1DataFilter lets users filter data based on criteria's. It can be bound to any data-aware control and multiple conditional filtering could be applied.

Namespace: C1.Blazor.DataFilter
Assembly: C1.Blazor.DataFilter.dll
Syntax
public class C1DataFilter : C1Accordion, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1DataFilter()

Initializes a new instance of the C1DataFilter class.

Fields

Name Description
AutoApplyProperty

Identifies the AutoApply dependency property.

AutoGenerateFiltersProperty

Identifies the AutoGenerateFilters dependency property.

ChecklistEmptyFilterBehaviorProperty

Identifies the ChecklistEmptyFilterBehavior dependency property.

Properties

Name Description
AutoApply

Gets or sets a value indicating whether the filter should be automatically applied to the DataSource after the filter value is changed or not.

AutoApplyChanged

Gets or sets the callback called when the AutoApply property has changed.

AutoGenerateFilters

Gets or sets a value indicating whether to generate filters automatically.

AutoGenerateFiltersChanged

Gets or sets the callback called when the AutoGenerateFilters property has changed.

ChecklistEmptyFilterBehavior

Gets or sets the behavior when CheckListFilter is assigned an empty expression.

DataCollection

Gets the underlying data collection used to filter the original ItemsSource collection.

DataFilters

Filter collection.

FilterAutoGenerating

Occurs before the filter is added to the Filters. Allows to cancel the change.

FilterChanged

Occurs when the filter changes.

FilterChanging

Occurs before the filter is changed. Allows to cancel the change.

FilterValueChanged

Occurs when a value of the filter changes.

Filters

Gets the collection of filters.

Methods

Name Description
ApplyFilterAsync()

Applies the filter to the items source asynchronously.

BuildRenderTree(RenderTreeBuilder)

Render the tree children.

DeserializeFilterExpression(string)

Deserialize xml and add expressions to the Filters collection.

Dispose(bool)
GenerateFilters(bool)

Generates filters for the current items source.

OnAfterRender(bool)
OnFilterAutoGenerating(FilterAutoGeneratingEventArgs)

Raises the FilterAutoGenerating event.

OnFilterChanged(EventArgs)

Raises the FilterChanged event.

OnFilterChanging(CancelEventArgs)

Raises the FilterChanging event.

OnFilterValueChanged(FilterChangedEventArgs)

Raises the FilterValueChanged event.

OnInitialized()
OnItemsSourceChangedProtected(IEnumerable)

ItemsSource changed handler.

Reset()

Reset Filters.

SerializeFilterExpression()

Serialize the Filters collection to a xml content.