ClassCardDataFieldDescriptor
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:
public class CardDataFieldDescriptor : DependencyObject, INotifyPropertyChanged
Inheritance: objectCardDataFieldDescriptor
Implements:
Constructors
CardDataFieldDescriptor()
Declaration
public CardDataFieldDescriptor()
Fields
AllowFilteringProperty
Represents the AllowFiltering dependency property.
Declaration
public static readonly DependencyProperty AllowFilteringProperty
Field Value
DependencyProperty
AllowGroupingProperty
Represents the AllowGrouping dependency property.
Declaration
public static readonly DependencyProperty AllowGroupingProperty
Field Value
DependencyProperty
AllowSortingProperty
Represents the AllowSorting dependency property.
Declaration
public static readonly DependencyProperty AllowSortingProperty
Field Value
DependencyProperty
DisplayOrderProperty
Represents the DisplayOrder dependency property.
Declaration
public static readonly DependencyProperty DisplayOrderProperty
Field Value
DependencyProperty
EditorTemplateProperty
Represents the EditorTemplate dependency property.
Declaration
public static readonly DependencyProperty EditorTemplateProperty
Field Value
DependencyProperty
FilterMemberTypeProperty
Identifies the FilterMemberType dependency property.
Declaration
public static readonly DependencyProperty FilterMemberTypeProperty
Field Value
DependencyProperty
FilteringControlStyleProperty
Identifies the FilteringControlStyle dependency property.
Declaration
public static readonly DependencyProperty FilteringControlStyleProperty
Field Value
DependencyProperty
HeaderProperty
Represents the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
DependencyProperty
IsFilteringDeferredProperty
Identifies the IsFilteringDeferred dependency property.
Declaration
public static readonly DependencyProperty IsFilteringDeferredProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Represents the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
IsVisibleProperty
Represents the IsVisible dependency property.
Declaration
public static readonly DependencyProperty IsVisibleProperty
Field Value
DependencyProperty
OptimizeDistinctFilterQueryProperty
Identifies the OptimizeDistinctFilterQuery dependency property.
Declaration
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty
Field Value
DependencyProperty
ReadOnlyTemplateProperty
Represents the ReadOnlyTemplate dependency property.
Declaration
public static readonly DependencyProperty ReadOnlyTemplateProperty
Field Value
DependencyProperty
ShouldGenerateFieldFilterEditorsProperty
Identifies the ShouldGenerateFieldFilterEditors dependency property.
Declaration
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty
Field Value
DependencyProperty
ShowDistinctFiltersProperty
Identifies the ShowDistinctFilters dependency property.
Declaration
public static readonly DependencyProperty ShowDistinctFiltersProperty
Field Value
DependencyProperty
ShowFieldFiltersProperty
Identifies the ShowFieldFilters dependency property.
Declaration
public static readonly DependencyProperty ShowFieldFiltersProperty
Field Value
DependencyProperty
ShowFilterButtonProperty
Identifies the ShowFilterButton dependency property.
Declaration
public static readonly DependencyProperty ShowFilterButtonProperty
Field Value
DependencyProperty
SortingIndexProperty
Identifies the SortingIndex readonly dependency property.
Declaration
public static readonly DependencyProperty SortingIndexProperty
Field Value
DependencyProperty
SortingStateProperty
Identifies the SortingState dependency property.
Declaration
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.
AllowGrouping
Gets or sets a value that indicates whether the user can group by the data in this data field.
AllowSorting
Gets or sets a value that indicates whether the user can sort by the data in this data field.
CardDataFieldFilterDescriptor
Gets the CardDataFieldFilterDescriptor.
Declaration
public ICardDataFieldFilterDescriptor CardDataFieldFilterDescriptor { get; }
Property Value
ICardDataFieldFilterDescriptor
The CardDataFieldFilterDescriptor.
DataMemberBinding
Gets or sets the binding which points to the data member to display.
Declaration
public Binding DataMemberBinding { get; set; }
Property Value
Binding
DisplayOrder
Gets or sets the order in which the data field should be displayed.
EditorTemplate
Gets or sets the editor template to be used for editing values of the data field.
Declaration
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.
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
public Type FilterMemberType { get; set; }
Property Value
The filter member data type of the CardDataFieldDescriptor.
FilteringControl
Gets or sets the control used for filtering.
Declaration
public IFilteringControl FilteringControl { get; set; }
Property Value
FilteringControlStyle
Gets or sets the style which will be applied on the filtering control.
Declaration
public Style FilteringControlStyle { get; set; }
Property Value
Style
The editor style.
Header
Gets or sets the content of the data field header.
IsFilteringDeferred
Gets or sets a value indicating whether this CardDataFieldDescriptor will have deferred filtering.
IsReadOnly
Gets or sets a value indicating whether this field can be edited.
IsVisible
Gets or sets whether this descriptor is visible .
OptimizeDistinctFilterQuery
Gets or sets a value indicating whether to optimize distinct filter query.
Declaration
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
Gets or sets the display template to be used when displaying values of the data field.
Declaration
public DataTemplate ReadOnlyTemplate { get; set; }
Property Value
DataTemplate
ShouldGenerateFieldFilterEditors
Gets or sets a value indicating whether field filter editors should be generated.
Declaration
public bool? ShouldGenerateFieldFilterEditors { get; set; }
Property Value
bool?
ShowDistinctFilters
Gets or sets a value indicating whether this CardDataFieldDescriptor will show distinct filters.
ShowFieldFilters
Gets or sets a value indicating whether this CardDataFieldDescriptor will show field filters.
ShowFilterButton
Gets or sets a value indicating whether this CardDataFieldDescriptor will show the filter button.
SortingIndex
Gets the sorting index of the card data field descriptor when there is multiple sorting.
Declaration
public int SortingIndex { get; }
Property Value
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
public SortingState SortingState { get; set; }
Property Value
Methods
CanFilter()
Determines whether the data represented by the CardDataFieldDescriptor can be filtered by the RadCardView control.
Declaration
public bool CanFilter()
Returns
true if the data represented by the CardDataFieldDescriptor can be filtered automatically; otherwise, false.
CreateCardDataFieldFilterDescriptor()
Creates the CardDataFieldFilterDescriptor.
Declaration
public ICardDataFieldFilterDescriptor CreateCardDataFieldFilterDescriptor()
Returns
CreateFieldFilterEditor()
Creates the field filter editor.
Declaration
public FrameworkElement CreateFieldFilterEditor()
Returns
FrameworkElement
OnPropertyChanged(DependencyPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
e
DependencyPropertyChangedEventArgs
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
name
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements