Class RadDataFilterElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDataFilterElement : RadTreeViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IDataItemSource
Constructors
RadDataFilterElement()
Declaration
public RadDataFilterElement()
Fields
currentNodeEditorType
Declaration
protected Type currentNodeEditorType
Field Value
System.
|
Properties
AllowAdd
Gets or sets a value indicating whether [allow edit].
Declaration
public override bool AllowAdd { get; set; }
Property Value
System.
|
Overrides
AllowAlternatingRowColor
Declaration
public override bool AllowAlternatingRowColor { get; set; }
Property Value
System.
|
Overrides
AllowArbitraryItemHeight
Declaration
public override bool AllowArbitraryItemHeight { get; set; }
Property Value
System.
|
Overrides
AllowDragDrop
Gets or sets a value indicating whether [allow drag drop].
Declaration
public override bool AllowDragDrop { get; set; }
Property Value
System.
|
Overrides
AllowRemove
Gets or sets a value indicating whether [allow edit].
Declaration
public override bool AllowRemove { get; set; }
Property Value
System.
|
Overrides
AlternatingRowColor
Declaration
public override Color AlternatingRowColor { get; set; }
Property Value
System.
|
Overrides
AutoCheckChildNodes
Declaration
public override bool AutoCheckChildNodes { get; set; }
Property Value
System.
|
Overrides
AutoGenerateDescriptorItems
Gets or sets the auto generate descriptor items.
Declaration
public bool AutoGenerateDescriptorItems { get; set; }
Property Value
System. The auto generate descriptor items. |
CheckBoxes
Declaration
public override bool CheckBoxes { get; set; }
Property Value
System.
|
Overrides
CheckedMember
Declaration
public override string CheckedMember { get; set; }
Property Value
System.
|
Overrides
CheckedNodes
Declaration
public override CheckedTreeNodeCollection CheckedNodes { get; }
Property Value
Overrides
ChildMember
Declaration
public override string ChildMember { get; set; }
Property Value
System.
|
Overrides
DataMember
Declaration
public override string DataMember { get; set; }
Property Value
System.
|
Overrides
DataSource
Gets or sets the data source that the Rad
Declaration
public override object DataSource { get; set; }
Property Value
System.
|
Overrides
DefaultCustomDateEditorFormat
Gets or sets the default custom date editor format.
Declaration
public string DefaultCustomDateEditorFormat { get; set; }
Property Value
System. The default custom date editor format. |
DefaultDateEditorFormat
Gets or sets the default date editor format.
Declaration
public DateTimePickerFormat DefaultDateEditorFormat { get; set; }
Property Value
System. The default date editor format. |
Descriptors
A collection of descriptor items used to identify the property names and their corresponding types.
Declaration
public DataFilterItemOwnerCollection Descriptors { get; }
Property Value
DisplayMember
Declaration
public override string DisplayMember { get; set; }
Property Value
System.
|
Overrides
EditMode
Declaration
public override TreeNodeEditMode EditMode { get; set; }
Property Value
Overrides
Expression
Gets or sets the expression.
Declaration
public virtual string Expression { get; set; }
Property Value
System. The expression. |
FieldNamesSortStyle
Gets or sets a value indicating how the field names are sorted when SortFieldNames is true.
Declaration
public SortStyle FieldNamesSortStyle { get; set; }
Property Value
Filter
Declaration
public override object Filter { get; set; }
Property Value
System.
|
Overrides
FilterDescriptors
Declaration
public override FilterDescriptorCollection FilterDescriptors { get; }
Property Value
Overrides
FilterPredicate
Declaration
public override Predicate<RadTreeNode> FilterPredicate { get; set; }
Property Value
System.
|
Overrides
FindStringComparer
Declaration
public override IFindStringComparer FindStringComparer { get; set; }
Property Value
Overrides
FullRowSelect
Declaration
public override bool FullRowSelect { get; set; }
Property Value
System.
|
Overrides
HideSelection
Declaration
public override bool HideSelection { get; set; }
Property Value
System.
|
Overrides
HotTracking
Declaration
public override bool HotTracking { get; set; }
Property Value
System.
|
Overrides
ImageIndex
Declaration
public override int ImageIndex { get; set; }
Property Value
System.
|
Overrides
ImageKey
Declaration
public override string ImageKey { get; set; }
Property Value
System.
|
Overrides
KeyboardSearchEnabled
Declaration
public override bool KeyboardSearchEnabled { get; set; }
Property Value
System.
|
Overrides
KeyboardSearchResetInterval
Declaration
public override int KeyboardSearchResetInterval { get; set; }
Property Value
System.
|
Overrides
MultiSelect
Declaration
public override bool MultiSelect { get; set; }
Property Value
System.
|
Overrides
ParentMember
Declaration
public override string ParentMember { get; set; }
Property Value
System.
|
Overrides
PathSeparator
Declaration
public override string PathSeparator { get; set; }
Property Value
System.
|
Overrides
Provider
Gets or sets the provider.
Declaration
public IDataFilterProvider Provider { get; set; }
Property Value
IData The provider. |
SelectedNode
Declaration
public override RadTreeNode SelectedNode { get; set; }
Property Value
Overrides
SelectedNodes
Declaration
public override SelectedTreeNodeCollection SelectedNodes { get; }
Property Value
Overrides
SortFieldNames
Gets or sets a value indicating whether the name of fields in fields drop down should be sorted.
Declaration
public bool SortFieldNames { get; set; }
Property Value
System.
|
TimeSpanEditorFormat
Gets or sets the format of TimeSpan editor.
Declaration
public string TimeSpanEditorFormat { get; set; }
Property Value
System. The timespan editor format. |
TriStateMode
Declaration
public override bool TriStateMode { get; set; }
Property Value
System.
|
Overrides
ValueMember
Declaration
public override string ValueMember { get; set; }
Property Value
System.
|
Overrides
Methods
AddChildNodes(FilterDescriptor, RadTreeNode)
Adds child nodes, based on the given filter descriptor and its child descriptors.
Declaration
public void AddChildNodes(FilterDescriptor filter, RadTreeNode node)
Parameters
Filter The filter. |
Rad The node, that will be the parent of created nodes. |
AddChildNodes(FilterDescriptor, RadTreeNode, Boolean)
Declaration
public void AddChildNodes(FilterDescriptor filter, RadTreeNode node, bool updateDescriptors)
Parameters
Filter
|
Rad
|
System.
|
AddDescriptorsFromProvider()
Declaration
protected virtual void AddDescriptorsFromProvider()
AddNodeByPath(String)
Declaration
public override RadTreeNode AddNodeByPath(string path)
Parameters
System.
|
Returns
Overrides
AddNodeByPath(String, String)
Declaration
public override RadTreeNode AddNodeByPath(string path, string pathSeparator)
Parameters
System.
|
System.
|
Returns
Overrides
ApplyFilter()
Applies the filter to the DataSource.
Declaration
public void ApplyFilter()
BeginEdit()
Puts the current node in edit mode.
Declaration
public override bool BeginEdit()
Returns
System.
|
Overrides
BuildTree()
Builds the tree based on the collection of filter descriptors.
Declaration
protected virtual void BuildTree()
ClearChildNodes(DataFilterGroupNode)
Clears the child nodes of given group node.
Declaration
public void ClearChildNodes(DataFilterGroupNode node)
Parameters
Data The node. |
ClearSelection()
CreateAddNode()
CreateCriteriaNode()
Declaration
protected virtual DataFilterCriteriaNode CreateCriteriaNode()
Returns
CreateDragDropService()
Declaration
protected override TreeViewDragDropService CreateDragDropService()
Returns
Overrides
CreateElementProvider()
Declaration
protected override IVirtualizedElementProvider<RadTreeNode> CreateElementProvider()
Returns
Overrides
CreateGroupNode()
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
EndEditCore(Boolean)
Declaration
protected override bool EndEditCore(bool commitChanges)
Parameters
System.
|
Returns
System.
|
Overrides
EndInit()
EnsureNodeVisibleHorizontal(RadTreeNode, TreeNodeElement)
Declaration
protected override void EnsureNodeVisibleHorizontal(RadTreeNode node, TreeNodeElement nodeElement)
Parameters
Rad
|
Tree
|
Overrides
Find(String)
Declaration
public override RadTreeNode Find(string text)
Parameters
System.
|
Returns
Overrides
FindNodes(String)
Declaration
public override RadTreeNode[] FindNodes(string text)
Parameters
System.
|
Returns
Overrides
GetDefaultPropertyName()
Gets the default name of field property.
Declaration
protected virtual string GetDefaultPropertyName()
Returns
System.
|
GetDescriptorItemByName(String)
Declaration
protected virtual DataFilterDescriptorItem GetDescriptorItemByName(string name)
Parameters
System.
|
Returns
GetEditor(Type)
Gets the editor.
Declaration
protected override IInputEditor GetEditor(Type editorType)
Parameters
System. Type of the editor. |
Returns
Overrides
GetEditorType(Type)
Gets the type of the editor.
Declaration
public virtual Type GetEditorType(Type valueType)
Parameters
System. Type of the value. |
Returns
System.
|
GetFieldNames()
Gets the field names.
Declaration
public IEnumerable<string> GetFieldNames()
Returns
System.
|
GetFieldType(String)
Gets the type of the field by given property name.
Declaration
public virtual Type GetFieldType(string propertyName)
Parameters
System. Name of the property. |
Returns
System.
|
GetNodeByPath(String)
Declaration
public override RadTreeNode GetNodeByPath(string path)
Parameters
System.
|
Returns
Overrides
GetNodeByPath(String, String)
Declaration
public override RadTreeNode GetNodeByPath(string path, string pathSeparator)
Parameters
System.
|
System.
|
Returns
Overrides
InitializeDefaultContextMenu(RadTreeNode)
Declaration
protected override RadContextMenu InitializeDefaultContextMenu(RadTreeNode node)
Parameters
Rad
|
Returns
Overrides
InitializeEditor(Type, IValueEditor)
Initializes the editor.
Declaration
protected virtual void InitializeEditor(Type valueType, IValueEditor editor)
Parameters
System. Type of the value. |
IValue The editor. |
InitializeFieldEditor(IInputEditor, DataFilterCriteriaElement)
Declaration
protected virtual void InitializeFieldEditor(IInputEditor editor, DataFilterCriteriaElement editingElement)
Parameters
IInput
|
Data
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
InitializeOperatorEditor(IInputEditor, DataFilterCriteriaElement)
Declaration
protected virtual void InitializeOperatorEditor(IInputEditor editor, DataFilterCriteriaElement editingElement)
Parameters
IInput
|
Data
|
InitializeSpinEditor(TreeViewSpinEditor, Type)
Initializes the spin editor.
Declaration
protected virtual void InitializeSpinEditor(TreeViewSpinEditor spinEditor, Type valueType)
Parameters
Tree The spin editor. |
System. Type of the value. |
InitializeValueEditor(IInputEditor, DataFilterCriteriaElement)
Declaration
protected virtual void InitializeValueEditor(IInputEditor editor, DataFilterCriteriaElement editingElement)
Parameters
IInput
|
Data
|
NormalizeChildDescriptor(CompositeFilterDescriptor)
Normalizes the child descriptor.
Declaration
protected virtual void NormalizeChildDescriptor(CompositeFilterDescriptor compositeDescriptor)
Parameters
Composite The composite descriptor. |
NormalizeExpression()
Normalizes the expression.
Declaration
protected virtual void NormalizeExpression()
OnDragEnded(RadTreeViewDragEventArgs)
Declaration
protected override void OnDragEnded(RadTreeViewDragEventArgs e)
Parameters
Overrides
OnEditing(Object, TreeNodeEditingEventArgs)
Raises the Editing event.
Declaration
protected override void OnEditing(object sender, TreeNodeEditingEventArgs e)
Parameters
System. The sender. |
Tree The Tree |
Overrides
OnEditorRequired(Object, TreeNodeEditorRequiredEventArgs)
Called when [editor required].
Declaration
protected override void OnEditorRequired(object sender, TreeNodeEditorRequiredEventArgs e)
Parameters
System. The sender. |
Tree The Tree |
Overrides
OnLoaded()
OnNodeCheckedChanged(TreeNodeCheckedEventArgs)
Declaration
protected override void OnNodeCheckedChanged(TreeNodeCheckedEventArgs e)
Parameters
Overrides
OnNodeCheckedChanging(RadTreeViewCancelEventArgs)
Declaration
protected override void OnNodeCheckedChanging(RadTreeViewCancelEventArgs e)
Parameters
Overrides
OnNodeRemoving(RadTreeViewCancelEventArgs)
Declaration
protected override void OnNodeRemoving(RadTreeViewCancelEventArgs e)
Parameters
Overrides
OnPropertyDisplayNameNeeded(Object, PropertyDisplayNameNeededEventArgs)
Fires the Property
Declaration
protected virtual void OnPropertyDisplayNameNeeded(object sender, PropertyDisplayNameNeededEventArgs e)
Parameters
System.
|
Property
|
OnSelectedNodeChanged(RadTreeViewEventArgs)
Declaration
protected override void OnSelectedNodeChanged(RadTreeViewEventArgs args)
Parameters
Rad
|
Overrides
OnSelectedNodeChanging(RadTreeViewCancelEventArgs)
Declaration
protected override void OnSelectedNodeChanging(RadTreeViewCancelEventArgs args)
Parameters
Overrides
OnSelectedNodesChanged(RadTreeNode)
Declaration
protected override void OnSelectedNodesChanged(RadTreeNode node)
Parameters
Rad
|
Overrides
OnSelectedNodesCleared()
Declaration
protected override void OnSelectedNodesCleared()
Overrides
RemoveChildNode(RadTreeNode)
Removes the child node.
Declaration
public void RemoveChildNode(RadTreeNode nodeToRemove)
Parameters
Rad The node to remove. |
RemoveChildNode(RadTreeNode, RadTreeNode)
Removes the child node.
Declaration
public void RemoveChildNode(RadTreeNode node, RadTreeNode childNode)
Parameters
Rad The parent node. |
Rad The child node. |
SaveEditorValue(TreeNodeElement, Object)
Saves the editor value.
Declaration
protected override void SaveEditorValue(TreeNodeElement nodeElement, object newValue)
Parameters
Tree The node element. |
System. The new value. |
Overrides
SelectAll()
SetupDropDownList(DataFilterCriteriaNode, TreeViewDropDownListEditor)
Setups the drop down list.
Declaration
protected virtual object SetupDropDownList(DataFilterCriteriaNode criteriaNode, TreeViewDropDownListEditor editor)
Parameters
Data The criteria node. |
Tree The editor. |
Returns
System. The display value. |
UpdateNodesFromDescriptors()
Updates the nodes collection by removing all the nodes that does not have corresponding property name in the Descriptors collection.
Declaration
public virtual void UpdateNodesFromDescriptors()
ValidateAddNewNode()
Validates if adding new node is allowed.
Declaration
public virtual bool ValidateAddNewNode()
Returns
System.
|
Events
NodeCheckedChanged
Declaration
public override event TreeNodeCheckedEventHandler NodeCheckedChanged
Event Type
Overrides
NodeCheckedChanging
Declaration
public override event RadTreeView.RadTreeViewCancelEventHandler NodeCheckedChanging
Event Type
Overrides
PropertyDisplayNameNeeded
Occurs when a property text is about to be displayed on the screen. Allows the developer to substitute property names with user-friendly display strings.
Declaration
public event PropertyDisplayNameNeededEventHandler PropertyDisplayNameNeeded
Event Type
SelectedNodeChanged
Declaration
public override event RadTreeView.RadTreeViewEventHandler SelectedNodeChanged
Event Type
Overrides
SelectedNodeChanging
Declaration
public override event RadTreeView.RadTreeViewCancelEventHandler SelectedNodeChanging
Event Type
Overrides
SelectedNodesChanged
Declaration
public override event EventHandler<RadTreeViewEventArgs> SelectedNodesChanged
Event Type
System.
|
Overrides
SelectedNodesCleared
Declaration
public override event EventHandler SelectedNodesCleared
Event Type
System.
|