ClassRadDataFilterView
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:
public class RadDataFilterView : Control
Inheritance: objectRadDataFilterView
Constructors
RadDataFilterView()
Declaration
public RadDataFilterView()
Fields
AutoGeneratingItemPropertyDefinitionHandlerProperty
Identifies the AutoGeneratingItemPropertyDefinitionHandler dependency property.
Declaration
public static readonly DependencyProperty AutoGeneratingItemPropertyDefinitionHandlerProperty
Field Value
DependencyProperty
CanToggleWrappingProperty
Identifies the CanToggleWrapping dependency property.
Declaration
public static readonly DependencyProperty CanToggleWrappingProperty
Field Value
DependencyProperty
CloseButtonVisibilityProperty
Identifies the CloseButtonVisibility dependency property.
Declaration
public static readonly DependencyProperty CloseButtonVisibilityProperty
Field Value
DependencyProperty
EditorCreatedHandlerProperty
Identifies the EditorCreatedHandler dependency property.
Declaration
public static readonly DependencyProperty EditorCreatedHandlerProperty
Field Value
DependencyProperty
EmptyFiltersContentProperty
Identifies the EmptyFiltersContent dependency property.
Declaration
public static readonly DependencyProperty EmptyFiltersContentProperty
Field Value
DependencyProperty
EmptyFiltersContentTemplateProperty
Identifies the EmptyFiltersContentTemplate dependency property.
Declaration
public static readonly DependencyProperty EmptyFiltersContentTemplateProperty
Field Value
DependencyProperty
FilterEditorWindowHeightProperty
Identifies the FilterEditorWindowHeight dependency property.
Declaration
public static readonly DependencyProperty FilterEditorWindowHeightProperty
Field Value
DependencyProperty
FilterEditorWindowWidthProperty
Identifies the FilterEditorWindowWidth dependency property.
Declaration
public static readonly DependencyProperty FilterEditorWindowWidthProperty
Field Value
DependencyProperty
FilterOperatorsLoadingHandlerProperty
Identifies the FilterOperatorsLoadingHandler dependency property.
Declaration
public static readonly DependencyProperty FilterOperatorsLoadingHandlerProperty
Field Value
DependencyProperty
FilterPartViewModelsProperty
Identifies the FilterPartViewModels dependency property.
Declaration
public static readonly DependencyProperty FilterPartViewModelsProperty
Field Value
DependencyProperty
FilterPartsSpacingProperty
Identifies the FilterPartsSpacing dependency property.
Declaration
public static readonly DependencyProperty FilterPartsSpacingProperty
Field Value
DependencyProperty
IsWrappingEnabledProperty
Identifies the IsWrappingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsWrappingEnabledProperty
Field Value
DependencyProperty
ShouldRemoveFiltersOnCloseProperty
Identifies the ShouldRemoveFiltersOnClose dependency property.
Declaration
public static readonly DependencyProperty ShouldRemoveFiltersOnCloseProperty
Field Value
DependencyProperty
SourceProperty
Identifies the Source dependency property.
Declaration
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
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.
CloseButtonVisibility
Gets or sets the Visibility of the close button.
Declaration
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
public EventHandler<EditorCreatedEventArgs> EditorCreatedHandler { get; set; }
Property Value
EmptyFiltersContent
Gets or sets the Content of the ContentPresenter shown when the filters are empty.
EmptyFiltersContentTemplate
Gets or sets the ContentTemplate of the ContentPresenter shown when the filters are empty.
Declaration
public DataTemplate EmptyFiltersContentTemplate { get; set; }
Property Value
DataTemplate
FilterEditorWindowHeight
Gets or sets the Height of the window that hosts the FilterEditorDialog.
Declaration
public double FilterEditorWindowHeight { get; set; }
Property Value
FilterEditorWindowWidth
Gets or sets the Width of the window that hosts the FilterEditorDialog.
Declaration
public double FilterEditorWindowWidth { get; set; }
Property Value
FilterOperatorsLoadingHandler
Gets or sets an EventHandler that will be attached to the FilterOperatorsLoading event of the RadDataFilter in the FilterEditorDialog.
Declaration
public EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoadingHandler { get; set; }
Property Value
FilterPartViewModels
Gets a readonly collection of the view models that represent the parts of the filtering expression.
Declaration
public IList<FilterPartViewModel> FilterPartViewModels { get; }
Property Value
FilterPartsSpacing
Gets or sets a double value that indicates how much spacing will be applied between FilterPart elements.
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.
ShouldRemoveFiltersOnClose
Gets or sets a boolean value indicating whether the generated filters should be removed on close.
Declaration
public bool ShouldRemoveFiltersOnClose { get; set; }
Property Value
Source
Gets or sets the QueryableCollectionView instance that the control uses.
Declaration
public QueryableCollectionView Source { get; set; }
Property Value
Methods
ApplyFilters()
Refreshes the FilterPartViewModels collection and applies the FilterDescriptors to the Source.
Declaration
protected virtual void ApplyFilters()
CancelFilters()
Cancels the filters and restore the initial FilterDescriptors present when the FilterEditorDialog was opened.
Declaration
protected virtual void CancelFilters()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
OnRenderSizeChanged(SizeChangedInfo)
Declaration
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters
sizeInfo
SizeChangedInfo
OpenFilterEditor(bool)
Opens a RadWindow containing the FilterEditorDialog.
Declaration
protected virtual void OpenFilterEditor(bool showModal = true)
Parameters
showModal
RemoveFilters()
Removes the applied filters from the Source FilterDescriptors.
Declaration
public void RemoveFilters()
SelectFilters()
Closes the FilterEditorDialog, refreshes the FilterPartViewModels collection and applies the FilterDescriptors to the Source.
Declaration
protected virtual void SelectFilters()
ToggleWrapping()
Turns the wrapping of the filter parts on and off.
Declaration
protected virtual void ToggleWrapping()