Class RadDataFilterView
Provides a view of the FilterDescriptors collection of a QueryableCollectionView and allows for modifying the filters through a RadDataFilter.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
public class RadDataFilterView : Control, IThemable
Constructors
RadDataFilterView()
Declaration
public RadDataFilterView()
Fields
AutoGeneratingItemPropertyDefinitionHandlerProperty
Identifies the AutoGeneratingItemPropertyDefinitionHandler dependency property.
Declaration
public static readonly DependencyProperty AutoGeneratingItemPropertyDefinitionHandlerProperty
Field Value
System.Windows.DependencyProperty
|
CanToggleWrappingProperty
Identifies the CanToggleWrapping dependency property.
Declaration
public static readonly DependencyProperty CanToggleWrappingProperty
Field Value
System.Windows.DependencyProperty
|
CloseButtonVisibilityProperty
Identifies the CloseButtonVisibility dependency property.
Declaration
public static readonly DependencyProperty CloseButtonVisibilityProperty
Field Value
System.Windows.DependencyProperty
|
EditorCreatedHandlerProperty
Identifies the EditorCreatedHandler dependency property.
Declaration
public static readonly DependencyProperty EditorCreatedHandlerProperty
Field Value
System.Windows.DependencyProperty
|
EmptyFiltersContentProperty
Identifies the EmptyFiltersContent dependency property.
Declaration
public static readonly DependencyProperty EmptyFiltersContentProperty
Field Value
System.Windows.DependencyProperty
|
EmptyFiltersContentTemplateProperty
Identifies the EmptyFiltersContentTemplate dependency property.
Declaration
public static readonly DependencyProperty EmptyFiltersContentTemplateProperty
Field Value
System.Windows.DependencyProperty
|
FilterEditorWindowHeightProperty
Identifies the FilterEditorWindowHeight dependency property.
Declaration
public static readonly DependencyProperty FilterEditorWindowHeightProperty
Field Value
System.Windows.DependencyProperty
|
FilterEditorWindowWidthProperty
Identifies the FilterEditorWindowWidth dependency property.
Declaration
public static readonly DependencyProperty FilterEditorWindowWidthProperty
Field Value
System.Windows.DependencyProperty
|
FilterOperatorsLoadingHandlerProperty
Identifies the FilterOperatorsLoadingHandler dependency property.
Declaration
public static readonly DependencyProperty FilterOperatorsLoadingHandlerProperty
Field Value
System.Windows.DependencyProperty
|
FilterPartsSpacingProperty
Identifies the FilterPartsSpacing dependency property.
Declaration
public static readonly DependencyProperty FilterPartsSpacingProperty
Field Value
System.Windows.DependencyProperty
|
FilterPartViewModelsProperty
Identifies the FilterPartViewModels dependency property.
Declaration
public static readonly DependencyProperty FilterPartViewModelsProperty
Field Value
System.Windows.DependencyProperty
|
IsWrappingEnabledProperty
Identifies the IsWrappingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsWrappingEnabledProperty
Field Value
System.Windows.DependencyProperty
|
ShouldRemoveFiltersOnCloseProperty
Identifies the ShouldRemoveFiltersOnClose dependency property.
Declaration
public static readonly DependencyProperty ShouldRemoveFiltersOnCloseProperty
Field Value
System.Windows.DependencyProperty
|
SourceProperty
Identifies the Source dependency property.
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
System.Windows.DependencyProperty
|
Properties
AutoGeneratingItemPropertyDefinitionHandler
Gets or sets an System.EventHandler that will be attached to the AutoGeneratingItemPropertyDefinition event of the RadDataFilter in the FilterEditorDialog.
Declaration
public EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs> AutoGeneratingItemPropertyDefinitionHandler { get; set; }
Property Value
System.EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs>
|
CanToggleWrapping
Gets a boolean value indicating whether the button for enabling the wrapping of the filter parts is visible.
Declaration
public bool CanToggleWrapping { get; }
Property Value
System.Boolean
|
CloseButtonVisibility
Gets or sets the Visibility of the close button.
Declaration
public Visibility CloseButtonVisibility { get; set; }
Property Value
System.Windows.Visibility
|
EditorCreatedHandler
Gets or sets an System.EventHandler that will be attached to the EditorCreated event of the RadDataFilter in the FilterEditorDialog.
Declaration
public EventHandler<EditorCreatedEventArgs> EditorCreatedHandler { get; set; }
Property Value
System.EventHandler<EditorCreatedEventArgs>
|
EmptyFiltersContent
Gets or sets the Content of the ContentPresenter shown when the filters are empty.
Declaration
public object EmptyFiltersContent { get; set; }
Property Value
System.Object
|
EmptyFiltersContentTemplate
Gets or sets the ContentTemplate of the ContentPresenter shown when the filters are empty.
Declaration
public DataTemplate EmptyFiltersContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
FilterEditorWindowHeight
Gets or sets the Height of the window that hosts the FilterEditorDialog.
Declaration
public double FilterEditorWindowHeight { get; set; }
Property Value
System.Double
|
FilterEditorWindowWidth
Gets or sets the Width of the window that hosts the FilterEditorDialog.
Declaration
public double FilterEditorWindowWidth { get; set; }
Property Value
System.Double
|
FilterOperatorsLoadingHandler
Gets or sets an System.EventHandler that will be attached to the FilterOperatorsLoading event of the RadDataFilter in the FilterEditorDialog.
Declaration
public EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoadingHandler { get; set; }
Property Value
System.EventHandler<FilterOperatorsLoadingEventArgs>
|
FilterPartsSpacing
Gets or sets a double value that indicates how much spacing will be applied between FilterPart elements.
Declaration
public double FilterPartsSpacing { get; set; }
Property Value
System.Double
|
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
System.Collections.Generic.IList<FilterPartViewModel>
|
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
public bool IsWrappingEnabled { get; set; }
Property Value
System.Boolean
|
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
System.Boolean
|
Source
Gets or sets the QueryableCollectionView instance that the control uses.
Declaration
public QueryableCollectionView Source { get; set; }
Property Value
QueryableCollectionView
|
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
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
|
OnRenderSizeChanged(SizeChangedInfo)
Declaration
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters
System.Windows.SizeChangedInfo
sizeInfo
|
OpenFilterEditor(Boolean)
Opens a RadWindow containing the FilterEditorDialog.
Declaration
protected virtual void OpenFilterEditor(bool showModal = true)
Parameters
System.Boolean
showModal
|
RemoveFilters()
Removes the applied filters from the Source FilterDescriptors.
Declaration
public void RemoveFilters()
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
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()