Class
CardDataFieldDescriptor

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:

cs-api-definition
public class CardDataFieldDescriptor : DependencyObject, INotifyPropertyChanged

Inheritance: objectCardDataFieldDescriptor

Implements: INotifyPropertyChanged

Constructors

CardDataFieldDescriptor()

Declaration

cs-api-definition
public CardDataFieldDescriptor()

Fields

AllowFilteringProperty

Represents the AllowFiltering dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowFilteringProperty

Field Value

DependencyProperty

AllowGroupingProperty

Represents the AllowGrouping dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowGroupingProperty

Field Value

DependencyProperty

AllowSortingProperty

Represents the AllowSorting dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AllowSortingProperty

Field Value

DependencyProperty

DisplayOrderProperty

Represents the DisplayOrder dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayOrderProperty

Field Value

DependencyProperty

EditorTemplateProperty

Represents the EditorTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EditorTemplateProperty

Field Value

DependencyProperty

FilterMemberTypeProperty

Identifies the FilterMemberType dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilterMemberTypeProperty

Field Value

DependencyProperty

FilteringControlStyleProperty

Identifies the FilteringControlStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilteringControlStyleProperty

Field Value

DependencyProperty

HeaderProperty

Represents the Header dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

IsFilteringDeferredProperty

Identifies the IsFilteringDeferred dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsFilteringDeferredProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Represents the IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

IsVisibleProperty

Represents the IsVisible dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsVisibleProperty

Field Value

DependencyProperty

OptimizeDistinctFilterQueryProperty

Identifies the OptimizeDistinctFilterQuery dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty

Field Value

DependencyProperty

ReadOnlyTemplateProperty

Represents the ReadOnlyTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ReadOnlyTemplateProperty

Field Value

DependencyProperty

ShouldGenerateFieldFilterEditorsProperty

Identifies the ShouldGenerateFieldFilterEditors dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty

Field Value

DependencyProperty

ShowDistinctFiltersProperty

Identifies the ShowDistinctFilters dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowDistinctFiltersProperty

Field Value

DependencyProperty

ShowFieldFiltersProperty

Identifies the ShowFieldFilters dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowFieldFiltersProperty

Field Value

DependencyProperty

ShowFilterButtonProperty

Identifies the ShowFilterButton dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowFilterButtonProperty

Field Value

DependencyProperty

SortingIndexProperty

Identifies the SortingIndex readonly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortingIndexProperty

Field Value

DependencyProperty

SortingStateProperty

Identifies the SortingState dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortingStateProperty

Field Value

DependencyProperty

Properties

AllowFiltering

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

Declaration

cs-api-definition
public bool AllowFiltering { get; set; }

Property Value

bool

AllowGrouping

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

Declaration

cs-api-definition
public bool AllowGrouping { get; set; }

Property Value

bool

AllowSorting

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

Declaration

cs-api-definition
public bool AllowSorting { get; set; }

Property Value

bool

CardDataFieldFilterDescriptor

Gets the CardDataFieldFilterDescriptor.

Declaration

cs-api-definition
public ICardDataFieldFilterDescriptor CardDataFieldFilterDescriptor { get; }

Property Value

ICardDataFieldFilterDescriptor

The CardDataFieldFilterDescriptor.

DataMemberBinding

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

Declaration

cs-api-definition
public Binding DataMemberBinding { get; set; }

Property Value

Binding

DisplayOrder

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

Declaration

cs-api-definition
public int DisplayOrder { get; set; }

Property Value

int

EditorTemplate

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

Declaration

cs-api-definition
public DataTemplate EditorTemplate { get; set; }

Property Value

DataTemplate

FilterMemberPath

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

Declaration

cs-api-definition
public string FilterMemberPath { get; set; }

Property Value

string

FilterMemberType

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

Declaration

cs-api-definition
public Type FilterMemberType { get; set; }

Property Value

Type

The filter member data type of the CardDataFieldDescriptor.

FilteringControl

Gets or sets the control used for filtering.

Declaration

cs-api-definition
public IFilteringControl FilteringControl { get; set; }

Property Value

IFilteringControl

FilteringControlStyle

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

Declaration

cs-api-definition
public Style FilteringControlStyle { get; set; }

Property Value

Style

The editor style.

Header

Gets or sets the content of the data field header.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

IsFilteringDeferred

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

Declaration

cs-api-definition
public bool IsFilteringDeferred { get; set; }

Property Value

bool

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

IsVisible

Gets or sets whether this descriptor is visible .

Declaration

cs-api-definition
public bool IsVisible { get; set; }

Property Value

bool

OptimizeDistinctFilterQuery

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

Declaration

cs-api-definition
public bool OptimizeDistinctFilterQuery { get; set; }

Property Value

bool

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

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

Declaration

cs-api-definition
public DataTemplate ReadOnlyTemplate { get; set; }

Property Value

DataTemplate

ShouldGenerateFieldFilterEditors

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

Declaration

cs-api-definition
public bool? ShouldGenerateFieldFilterEditors { get; set; }

Property Value

bool?

ShowDistinctFilters

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

Declaration

cs-api-definition
public bool ShowDistinctFilters { get; set; }

Property Value

bool

ShowFieldFilters

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

Declaration

cs-api-definition
public bool ShowFieldFilters { get; set; }

Property Value

bool

ShowFilterButton

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

Declaration

cs-api-definition
public bool ShowFilterButton { get; set; }

Property Value

bool

SortingIndex

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

Declaration

cs-api-definition
public int SortingIndex { get; }

Property Value

int

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

SortingState

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.

Declaration

cs-api-definition
public SortingState SortingState { get; set; }

Property Value

SortingState

Methods

CanFilter()

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

Declaration

cs-api-definition
public bool CanFilter()

Returns

bool

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

CreateCardDataFieldFilterDescriptor()

Creates the CardDataFieldFilterDescriptor.

Declaration

cs-api-definition
public ICardDataFieldFilterDescriptor CreateCardDataFieldFilterDescriptor()

Returns

ICardDataFieldFilterDescriptor

CreateFieldFilterEditor()

Creates the field filter editor.

Declaration

cs-api-definition
public FrameworkElement CreateFieldFilterEditor()

Returns

FrameworkElement

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Declaration

cs-api-definition
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)

Parameters

e

DependencyPropertyChangedEventArgs

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string name)

Parameters

name

string

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged