New to Telerik UI for WPFStart a free 30-day trial

This is a class used to store the information for a single data field.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class CardDataFieldDescriptor : DependencyObject, INotifyPropertyChanged

Inheritance: objectCardDataFieldDescriptor

Implements: INotifyPropertyChanged

Constructors

C#
public CardDataFieldDescriptor()

Fields

AllowFilteringProperty

DependencyProperty

Represents the AllowFiltering dependency property.

C#
public static readonly DependencyProperty AllowFilteringProperty

AllowGroupingProperty

DependencyProperty

Represents the AllowGrouping dependency property.

C#
public static readonly DependencyProperty AllowGroupingProperty

AllowSortingProperty

DependencyProperty

Represents the AllowSorting dependency property.

C#
public static readonly DependencyProperty AllowSortingProperty

DisplayOrderProperty

DependencyProperty

Represents the DisplayOrder dependency property.

C#
public static readonly DependencyProperty DisplayOrderProperty

EditorTemplateProperty

DependencyProperty

Represents the EditorTemplate dependency property.

C#
public static readonly DependencyProperty EditorTemplateProperty

Identifies the FilteringControlStyle dependency property.

C#
public static readonly DependencyProperty FilteringControlStyleProperty

FilterMemberTypeProperty

DependencyProperty

Identifies the FilterMemberType dependency property.

C#
public static readonly DependencyProperty FilterMemberTypeProperty

HeaderProperty

DependencyProperty

Represents the Header dependency property.

C#
public static readonly DependencyProperty HeaderProperty

IsFilteringDeferredProperty

DependencyProperty

Identifies the IsFilteringDeferred dependency property.

C#
public static readonly DependencyProperty IsFilteringDeferredProperty

IsReadOnlyProperty

DependencyProperty

Represents the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

IsVisibleProperty

DependencyProperty

Represents the IsVisible dependency property.

C#
public static readonly DependencyProperty IsVisibleProperty

Identifies the OptimizeDistinctFilterQuery dependency property.

C#
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty

ReadOnlyTemplateProperty

DependencyProperty

Represents the ReadOnlyTemplate dependency property.

C#
public static readonly DependencyProperty ReadOnlyTemplateProperty

Identifies the ShouldGenerateFieldFilterEditors dependency property.

C#
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty

ShowDistinctFiltersProperty

DependencyProperty

Identifies the ShowDistinctFilters dependency property.

C#
public static readonly DependencyProperty ShowDistinctFiltersProperty

ShowFieldFiltersProperty

DependencyProperty

Identifies the ShowFieldFilters dependency property.

C#
public static readonly DependencyProperty ShowFieldFiltersProperty

ShowFilterButtonProperty

DependencyProperty

Identifies the ShowFilterButton dependency property.

C#
public static readonly DependencyProperty ShowFilterButtonProperty

SortingIndexProperty

DependencyProperty

Identifies the SortingIndex readonly dependency property.

C#
public static readonly DependencyProperty SortingIndexProperty

SortingStateProperty

DependencyProperty

Identifies the SortingState dependency property.

C#
public static readonly DependencyProperty SortingStateProperty

Properties

Gets or sets a value that indicates whether the user can filter by the data in this data field.

C#
public bool AllowFiltering { get; set; }

Gets or sets a value that indicates whether the user can group by the data in this data field.

C#
public bool AllowGrouping { get; set; }

Gets or sets a value that indicates whether the user can sort by the data in this data field.

C#
public bool AllowSorting { get; set; }

Gets the CardDataFieldFilterDescriptor.

C#
public ICardDataFieldFilterDescriptor CardDataFieldFilterDescriptor { get; }
Property Value:

The CardDataFieldFilterDescriptor.

Gets or sets the binding which points to the data member to display.

C#
public Binding DataMemberBinding { get; set; }

Gets or sets the order in which the data field should be displayed.

C#
public int DisplayOrder { get; set; }

EditorTemplate

DataTemplate

Gets or sets the editor template to be used for editing values of the data field.

C#
public DataTemplate EditorTemplate { get; set; }

Gets or sets the control used for filtering.

C#
public IFilteringControl FilteringControl { get; set; }

Gets or sets the style which will be applied on the filtering control.

C#
public Style FilteringControlStyle { get; set; }
Property Value:

The editor style.

Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to filter by.

C#
public string FilterMemberPath { get; set; }

Gets or sets the filter member type of the CardDataFieldDescriptor. Set this property when the type cannot be automatically discovered from the FilterMemberPath.

C#
public Type FilterMemberType { get; set; }
Property Value:

The filter member data type of the CardDataFieldDescriptor.

Gets or sets the content of the data field header.

C#
public object Header { get; set; }

Gets or sets a value indicating whether this CardDataFieldDescriptor will have deferred filtering.

C#
public bool IsFilteringDeferred { get; set; }

Gets or sets a value indicating whether this field can be edited.

C#
public bool IsReadOnly { get; set; }

Gets or sets whether this descriptor is visible .

C#
public bool IsVisible { get; set; }

Gets or sets a value indicating whether to optimize distinct filter query.

C#
public bool OptimizeDistinctFilterQuery { get; set; }
Property Value:

A value indicating whether to optimize distinct filter query.

Remarks:

By default, a condition of the form 'Member IsEqualTo Value' is generated for each distinct value selected and then all such conditions are combined with the OR operator. When the amount of distinct values checked grows, the query might become very slow. Setting OptimizeDistinctFilterQuery to true, will check the amount of distinct values checked. If this amount is less than or equal to half of all distinct values the original query will be generated. If, however, the amount of distinct values checked is more than half of all distinct values, an inverted statement like this be generated: (Member IsNotEqualTo uncheckedDistinctValue_0) ... AND ... (Member IsNotEqualTo uncheckedDistinctValue_N) If absolutely all distinct values are checked then no statement will be generated at all because this effectively means that there is no filter applied. Setting this property to true will try to generate the shortest possible LINQ Where clause.

ReadOnlyTemplate

DataTemplate

Gets or sets the display template to be used when displaying values of the data field.

C#
public DataTemplate ReadOnlyTemplate { get; set; }

Gets or sets a value indicating whether field filter editors should be generated.

C#
public bool? ShouldGenerateFieldFilterEditors { get; set; }

Gets or sets a value indicating whether this CardDataFieldDescriptor will show distinct filters.

C#
public bool ShowDistinctFilters { get; set; }

Gets or sets a value indicating whether this CardDataFieldDescriptor will show field filters.

C#
public bool ShowFieldFilters { get; set; }

Gets or sets a value indicating whether this CardDataFieldDescriptor will show the filter button.

C#
public bool ShowFilterButton { get; set; }

Gets the sorting index of the card data field descriptor when there is multiple sorting.

C#
public int SortingIndex { get; }
Property Value:

The sorting index of the card data field descriptor when there is multiple sorting.

Gets or sets a card data field descriptor sorting state depending on executed sorted command, it can take 3 possible values: Ascending, Descending and None.

C#
public SortingState SortingState { get; set; }

Methods

Determines whether the data represented by the CardDataFieldDescriptor can be filtered by the RadCardView control.

C#
public bool CanFilter()
Returns:

bool

true if the data represented by the CardDataFieldDescriptor can be filtered automatically; otherwise, false.

Creates the CardDataFieldFilterDescriptor.

C#
public ICardDataFieldFilterDescriptor CreateCardDataFieldFilterDescriptor()
Returns:

ICardDataFieldFilterDescriptor

Creates the field filter editor.

C#
public FrameworkElement CreateFieldFilterEditor()
Returns:

FrameworkElement

C#
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs
C#
protected virtual void OnPropertyChanged(string name)
Parameters:namestring

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged