Class RadDataFilter
Provides a user interface for creating filtering expressions.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
[TelerikToolboxCategory("Data")]
public class RadDataFilter : Control, IThemable
Constructors
RadDataFilter()
Fields
AutoGenerateItemPropertyDefinitionsProperty
Identifies the Auto
Declaration
public static readonly DependencyProperty AutoGenerateItemPropertyDefinitionsProperty
Field Value
System.
|
CanUserCreateCompositeFiltersProperty
Identifies the Can
Declaration
public static readonly DependencyProperty CanUserCreateCompositeFiltersProperty
Field Value
System.
|
EditorTemplateSelectorProperty
Identifies the Editor
Declaration
public static readonly DependencyProperty EditorTemplateSelectorProperty
Field Value
System.
|
SourceProperty
Identifies the Source dependency property.
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
System.
|
ViewModelProperty
Identifies the View
Declaration
public static readonly DependencyProperty ViewModelProperty
Field Value
System.
|
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
System.
|
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
System.
|
EditorTemplateSelector
Gets or sets the data template selector for the filter editors.
Declaration
public DataTemplateSelector EditorTemplateSelector { get; set; }
Property Value
System.
|
FilterDescriptors
Gets a collection of FilterDescriptor objects used to filter the items collection of this instance.
Declaration
public CompositeFilterDescriptorCollection FilterDescriptors { get; }
Property Value
Composite The filter descriptors. |
FilteredSource
Gets the filtered source.
Declaration
public IEnumerable FilteredSource { get; }
Property Value
System. 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
Item The collection of ItemPropertyDefinitions. |
Source
Gets or sets the data collection that the Rad
Declaration
public IEnumerable Source { get; set; }
Property Value
System. The data collection associated with this filter control. |
ViewModel
Gets or sets the view model.
Declaration
public FilterViewModel ViewModel { get; }
Property Value
Filter The view model. |
Methods
EndInit()
Indicates that the initialization process for the element is complete.
Declaration
public override void EndInit()
Exceptions
System. System. |
OnAutoGeneratingItemPropertyDefinition(DataFilterAutoGeneratingItemPropertyDefinitionEventArgs)
Raises the AutoGeneratingItemPropertyDefinition event.
Declaration
protected virtual void OnAutoGeneratingItemPropertyDefinition(DataFilterAutoGeneratingItemPropertyDefinitionEventArgs e)
Parameters
OnCreateAutomationPeer()
Returns class-specific System.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. The type-specific System. |
OnEditorCreated(EditorCreatedEventArgs)
Raises the EditorCreated event.
Declaration
protected virtual void OnEditorCreated(EditorCreatedEventArgs e)
Parameters
OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs)
Raises the FilterOperatorsLoading event.
Declaration
protected virtual void OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Parameters
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
ToString()
Returns a System.
Declaration
public override string ToString()
Returns
System. A System. |
Events
AutoGeneratingItemPropertyDefinition
Occurs when RadDataFilter auto-generates item property definitions.
Declaration
public event EventHandler<DataFilterAutoGeneratingItemPropertyDefinitionEventArgs> AutoGeneratingItemPropertyDefinition
Event Type
System.
|
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 Type
System.
|
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 Type
System.
|