ClassRadDataFilter
Provides a user interface for creating filtering expressions.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Data.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class RadDataFilter : Control
Inheritance: objectRadDataFilter
Constructors
RadDataFilter()
Initializes a new instance of the RadDataFilter class.
Declaration
public RadDataFilter()
Fields
AutoGenerateItemPropertyDefinitionsProperty
Identifies the AutoGenerateItemPropertyDefinitions dependency property.
Declaration
public static readonly DependencyProperty AutoGenerateItemPropertyDefinitionsProperty
Field Value
DependencyProperty
CanUserCreateCompositeFiltersProperty
Identifies the CanUserCreateCompositeFilters dependency property.
Declaration
public static readonly DependencyProperty CanUserCreateCompositeFiltersProperty
Field Value
DependencyProperty
EditorTemplateSelectorProperty
Identifies the EditorTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty EditorTemplateSelectorProperty
Field Value
DependencyProperty
SourceProperty
Identifies the Source dependency property.
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
DependencyProperty
ViewModelProperty
Identifies the ViewModel dependency property.
Declaration
public static readonly DependencyProperty ViewModelProperty
Field Value
DependencyProperty
Properties
AutoGenerateItemPropertyDefinitions
Gets or sets a value indicating whether item property definitions will be auto-generated based on the Source.
Declaration
public bool AutoGenerateItemPropertyDefinitions { get; set; }
Property Value
true if item property definitions will be auto-generated; otherwise, false.
CanUserCreateCompositeFilters
Gets or sets a value indicating whether the user can create composite filters. This property is typically used when filtering a DomainDataSource, which does not support filter composition.
Declaration
public bool CanUserCreateCompositeFilters { get; set; }
Property Value
true if filter composition is disabled; otherwise, false.
EditorTemplateSelector
Gets or sets the data template selector for the filter editors.
Declaration
public DataTemplateSelector EditorTemplateSelector { get; set; }
Property Value
DataTemplateSelector
FilterDescriptors
Gets a collection of FilterDescriptor objects used to filter the items collection of this instance.
Declaration
public CompositeFilterDescriptorCollection FilterDescriptors { get; }
Property Value
CompositeFilterDescriptorCollection
The filter descriptors.
FilteredSource
Gets the filtered source.
Declaration
public IEnumerable FilteredSource { get; }
Property Value
The filtered source.
Remarks
Binding the ItemsSource property of an ItemsControl to the FilteredSource property will enable filtering for this control through RadDataFilter.
ItemPropertyDefinitions
Gets a collection of ItemPropertyDefinition's describing the properties displayed by RadDataFilter.
Declaration
public ItemPropertyDefinitionCollection ItemPropertyDefinitions { get; }
Property Value
ItemPropertyDefinitionCollection
The collection of ItemPropertyDefinitions.
Source
Gets or sets the data collection that the RadDataFilter filters.
Declaration
public IEnumerable Source { get; set; }
Property Value
The data collection associated with this filter control.
ViewModel
Gets or sets the view model.
Declaration
public FilterViewModel ViewModel { get; }
Property Value
The view model.
Methods
EndInit()
Indicates that the initialization process for the element is complete.
Declaration
public override void EndInit()
Exceptions
was called without having previously been called on the element.
OnAutoGeneratingItemPropertyDefinition(DataFilterAutoGeneratingItemPropertyDefinitionEventArgs)
Raises the AutoGeneratingItemPropertyDefinition event.
Declaration
protected virtual void OnAutoGeneratingItemPropertyDefinition(DataFilterAutoGeneratingItemPropertyDefinitionEventArgs e)
Parameters
e
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnEditorCreated(EditorCreatedEventArgs)
Raises the EditorCreated event.
Declaration
protected virtual void OnEditorCreated(EditorCreatedEventArgs e)
Parameters
e
OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs)
Raises the FilterOperatorsLoading event.
Declaration
protected virtual void OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Parameters
e
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
ToString()
Returns a string that represents this instance.
Events
AutoGeneratingItemPropertyDefinition
Occurs when RadDataFilter auto-generates item property definitions.
Declaration
public event EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs> AutoGeneratingItemPropertyDefinition
Event Value
EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs>
EditorCreated
Occurs when a filter editor has been created and before it is added to the visual tree. Use this event if you want to customize the editor.
Declaration
public event EventHandler<EditorCreatedEventArgs> EditorCreated
Event Value
FilterOperatorsLoading
Occurs before the filter operators are loaded. Use this event if you want to remove one or more filter operators from the list.
Declaration
public event EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoading
Event Value