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