Class
RadDataFilterView

Provides a view of the FilterDescriptors collection of a QueryableCollectionView and allows for modifying the filters through a RadDataFilter.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

cs-api-definition
public class RadDataFilterView : Control

Inheritance: objectRadDataFilterView

Constructors

RadDataFilterView()

Declaration

cs-api-definition
public RadDataFilterView()

Fields

AutoGeneratingItemPropertyDefinitionHandlerProperty

Identifies the AutoGeneratingItemPropertyDefinitionHandler dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutoGeneratingItemPropertyDefinitionHandlerProperty

Field Value

DependencyProperty

CanToggleWrappingProperty

Identifies the CanToggleWrapping dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CanToggleWrappingProperty

Field Value

DependencyProperty

CloseButtonVisibilityProperty

Identifies the CloseButtonVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CloseButtonVisibilityProperty

Field Value

DependencyProperty

EditorCreatedHandlerProperty

Identifies the EditorCreatedHandler dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EditorCreatedHandlerProperty

Field Value

DependencyProperty

EmptyFiltersContentProperty

Identifies the EmptyFiltersContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyFiltersContentProperty

Field Value

DependencyProperty

EmptyFiltersContentTemplateProperty

Identifies the EmptyFiltersContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyFiltersContentTemplateProperty

Field Value

DependencyProperty

FilterEditorWindowHeightProperty

Identifies the FilterEditorWindowHeight dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterEditorWindowHeightProperty

Field Value

DependencyProperty

FilterEditorWindowWidthProperty

Identifies the FilterEditorWindowWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterEditorWindowWidthProperty

Field Value

DependencyProperty

FilterOperatorsLoadingHandlerProperty

Identifies the FilterOperatorsLoadingHandler dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterOperatorsLoadingHandlerProperty

Field Value

DependencyProperty

FilterPartViewModelsProperty

Identifies the FilterPartViewModels dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterPartViewModelsProperty

Field Value

DependencyProperty

FilterPartsSpacingProperty

Identifies the FilterPartsSpacing dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterPartsSpacingProperty

Field Value

DependencyProperty

IsWrappingEnabledProperty

Identifies the IsWrappingEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsWrappingEnabledProperty

Field Value

DependencyProperty

ShouldRemoveFiltersOnCloseProperty

Identifies the ShouldRemoveFiltersOnClose dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShouldRemoveFiltersOnCloseProperty

Field Value

DependencyProperty

SourceProperty

Identifies the Source dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

Properties

AutoGeneratingItemPropertyDefinitionHandler

Gets or sets an EventHandler that will be attached to the AutoGeneratingItemPropertyDefinition event of the RadDataFilter in the FilterEditorDialog.

Declaration

cs-api-definition
public EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs> AutoGeneratingItemPropertyDefinitionHandler { get; set; }

Property Value

EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs>

CanToggleWrapping

Gets a boolean value indicating whether the button for enabling the wrapping of the filter parts is visible.

Declaration

cs-api-definition
public bool CanToggleWrapping { get; }

Property Value

bool

CloseButtonVisibility

Gets or sets the Visibility of the close button.

Declaration

cs-api-definition
public Visibility CloseButtonVisibility { get; set; }

Property Value

Visibility

EditorCreatedHandler

Gets or sets an EventHandler that will be attached to the EditorCreated event of the RadDataFilter in the FilterEditorDialog.

Declaration

cs-api-definition
public EventHandler<EditorCreatedEventArgs> EditorCreatedHandler { get; set; }

Property Value

EventHandler<EditorCreatedEventArgs>

EmptyFiltersContent

Gets or sets the Content of the ContentPresenter shown when the filters are empty.

Declaration

cs-api-definition
public object EmptyFiltersContent { get; set; }

Property Value

object

EmptyFiltersContentTemplate

Gets or sets the ContentTemplate of the ContentPresenter shown when the filters are empty.

Declaration

cs-api-definition
public DataTemplate EmptyFiltersContentTemplate { get; set; }

Property Value

DataTemplate

FilterEditorWindowHeight

Gets or sets the Height of the window that hosts the FilterEditorDialog.

Declaration

cs-api-definition
public double FilterEditorWindowHeight { get; set; }

Property Value

double

FilterEditorWindowWidth

Gets or sets the Width of the window that hosts the FilterEditorDialog.

Declaration

cs-api-definition
public double FilterEditorWindowWidth { get; set; }

Property Value

double

FilterOperatorsLoadingHandler

Gets or sets an EventHandler that will be attached to the FilterOperatorsLoading event of the RadDataFilter in the FilterEditorDialog.

Declaration

cs-api-definition
public EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoadingHandler { get; set; }

Property Value

EventHandler<FilterOperatorsLoadingEventArgs>

FilterPartViewModels

Gets a readonly collection of the view models that represent the parts of the filtering expression.

Declaration

cs-api-definition
public IList<FilterPartViewModel> FilterPartViewModels { get; }

Property Value

IList<FilterPartViewModel>

FilterPartsSpacing

Gets or sets a double value that indicates how much spacing will be applied between FilterPart elements.

Declaration

cs-api-definition
public double FilterPartsSpacing { get; set; }

Property Value

double

IsWrappingEnabled

Gets or sets a boolean value indicating the whether the FilterPartsItemsControl will use wrapping when the available space is not enough to display all filter parts.

Declaration

cs-api-definition
public bool IsWrappingEnabled { get; set; }

Property Value

bool

ShouldRemoveFiltersOnClose

Gets or sets a boolean value indicating whether the generated filters should be removed on close.

Declaration

cs-api-definition
public bool ShouldRemoveFiltersOnClose { get; set; }

Property Value

bool

Source

Gets or sets the QueryableCollectionView instance that the control uses.

Declaration

cs-api-definition
public QueryableCollectionView Source { get; set; }

Property Value

QueryableCollectionView

Methods

ApplyFilters()

Refreshes the FilterPartViewModels collection and applies the FilterDescriptors to the Source.

Declaration

cs-api-definition
protected virtual void ApplyFilters()

CancelFilters()

Cancels the filters and restore the initial FilterDescriptors present when the FilterEditorDialog was opened.

Declaration

cs-api-definition
protected virtual void CancelFilters()

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnRenderSizeChanged(SizeChangedInfo)

Declaration

cs-api-definition
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)

Parameters

sizeInfo

SizeChangedInfo

OpenFilterEditor(bool)

Opens a RadWindow containing the FilterEditorDialog.

Declaration

cs-api-definition
protected virtual void OpenFilterEditor(bool showModal = true)

Parameters

showModal

bool

RemoveFilters()

Removes the applied filters from the Source FilterDescriptors.

Declaration

cs-api-definition
public void RemoveFilters()

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

SelectFilters()

Closes the FilterEditorDialog, refreshes the FilterPartViewModels collection and applies the FilterDescriptors to the Source.

Declaration

cs-api-definition
protected virtual void SelectFilters()

ToggleWrapping()

Turns the wrapping of the filter parts on and off.

Declaration

cs-api-definition
protected virtual void ToggleWrapping()