RadDataFilter
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
Initializes a new instance of the RadDataFilter class.
public RadDataFilter()
Fields
AutoGenerateItemPropertyDefinitionsProperty
DependencyProperty
Identifies the AutoGenerateItemPropertyDefinitions dependency property.
public static readonly DependencyProperty AutoGenerateItemPropertyDefinitionsProperty
CanUserCreateCompositeFiltersProperty
DependencyProperty
Identifies the CanUserCreateCompositeFilters dependency property.
public static readonly DependencyProperty CanUserCreateCompositeFiltersProperty
EditorTemplateSelectorProperty
DependencyProperty
Identifies the EditorTemplateSelector dependency property.
public static readonly DependencyProperty EditorTemplateSelectorProperty
SourceProperty
DependencyProperty
Identifies the Source dependency property.
public static readonly DependencyProperty SourceProperty
ViewModelProperty
DependencyProperty
Identifies the ViewModel dependency property.
public static readonly DependencyProperty ViewModelProperty
Properties
Gets or sets a value indicating whether item property definitions will be auto-generated based on the Source.
public bool AutoGenerateItemPropertyDefinitions { get; set; }
true if item property definitions will be auto-generated; otherwise, false.
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.
public bool CanUserCreateCompositeFilters { get; set; }
true if filter composition is disabled; otherwise, false.
EditorTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the filter editors.
public DataTemplateSelector EditorTemplateSelector { get; set; }
Gets a collection of FilterDescriptor objects used to filter the items collection of this instance.
public CompositeFilterDescriptorCollection FilterDescriptors { get; }
The filter descriptors.
Gets the filtered source.
public IEnumerable FilteredSource { get; }
The filtered source.
Binding the ItemsSource property of an ItemsControl to the FilteredSource property will enable filtering for this control through RadDataFilter.
Gets a collection of ItemPropertyDefinition's describing the properties displayed by RadDataFilter.
public ItemPropertyDefinitionCollection ItemPropertyDefinitions { get; }
The collection of ItemPropertyDefinitions.
Gets or sets the data collection that the RadDataFilter filters.
public IEnumerable Source { get; set; }
The data collection associated with this filter control.
Gets or sets the view model.
public FilterViewModel ViewModel { get; }
The view model.
Methods
Indicates that the initialization process for the element is complete.
public override void EndInit()
was called without having previously been called on the element.
Raises the AutoGeneratingItemPropertyDefinition event.
protected virtual void OnAutoGeneratingItemPropertyDefinition(DataFilterAutoGeneratingItemPropertyDefinitionEventArgs e)
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the EditorCreated event.
protected virtual void OnEditorCreated(EditorCreatedEventArgs e)
Raises the FilterOperatorsLoading event.
protected virtual void OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Resets the theme.
public void ResetTheme()
Events
Occurs when RadDataFilter auto-generates item property definitions.
public event EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs> AutoGeneratingItemPropertyDefinition
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.
public event EventHandler<EditorCreatedEventArgs> EditorCreated
Occurs before the filter operators are loaded. Use this event if you want to remove one or more filter operators from the list.
public event EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoading