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

Properties

Updated over 6 months ago
PropertyDescription
AutoGenerateDescriptorItemsGets or sets a value indicating whether descriptor items are created automatically when the DataSource is set.
DescriptorsA collection of descriptor items used to identify the property names and their corresponding types.
DataSourceGets or set the source collection.
DataFilterElementGets the main RadDataFilter's element.
ExpressionGets or sets the filter expression.
SortFieldNamesGets or sets a value indicating whether the field names will be sorted in the filter criterion's drop down.
NodesGets the collection of filter nodes that are assigned to the data filter control.
AllowDragDropGets or sets a value indicating whether drag and drop operation with RadDataFilter nodes is enabled.
AllowAddGets or sets a value indicating whether adding new nodes is allowed.
AllowRemoveGets or sets a value indicating whether removing nodes is allowed.
AllowEditGets or sets a value indicating whether editing is allowed.
ItemHeightGets or sets the height of the item.
ShowLinesGets or sets a value indicating whether the nodes lines are shown.
LineColorGets or sets the color of the line.
LineStyleGets or sets the line style.
ToggleModeGets or sets a value indicating the default tree view toggle mode.
SortFieldNamesGets or sets a value indicating whether the names of the fields in the drop down should be sorted.
FieldNamesSortStyleGets or sets a value indicating how the field names are sorted when SortFieldNames is true.

The DataFilterCriteriaElement class also defines three static properties responsible for defining the default sizes of its inner elements:

  • DataFilterCriteriaElement.DefaultFieldWidth: default width of the field element.
  • DataFilterCriteriaElement.DefaultOperatorWidth: default width of the operator element.
  • DataFilterCriteriaElement.DefaultValueWidth: default width of the value element.

Methods

MethodDescription
ApplyFilterForces the filter to be applied to the source collection.

RadDataFilterElement's Methods

MethodDescription
AddChildNodesAdds a filter condition with the specified FilterDescriptor and node.
RemoveChildNode(RadTreeNode nodeToRemove)Removes the specified node.
RemoveChildNode(RadTreeNode node, RadTreeNode childNode)Removes the specified node by the given parent node.
ClearChildNodesClears the filter nodes.
ValidateAddNewNodeReturns whether it is possible to add new filter nodes.
GetFieldNamesReturns a collection of the field names.
GetEditorType(Type valueType)Returns the relevant editor by the specified type.
GetFieldType(string propertyName)Returns the relevant editor for the specified field.

Events

EventDescription
EditorRequiredFires when a specific filter node's element is about to be edited and the editor for it is required.
EditingOccurs when initializing the active editor. If the event is canceled, no further action takes place.
EditorInitializedFires when the editor has already been initialized. Here is the appropriate place if you need to customize the editor.
EditedOccurs after the filter node is edited.
NodeFormattingOccurs when the filter node changes its state and needs to be formatted.
NodeAddedOccurs when a filter node is added.
NodeAddingOccurs when a filter node is adding. It is cancelable.
NodeRemovedOccurs when a filter node is removed.
NodeRemovingOccurs when a filter node is being removed. It is cancelable.
PropertyDisplayNameNeededOccurs when a property text is about to be displayed on the screen. Allows the developer to substitute property names with user-friendly display strings.

Note that RadDataFilter is a derivative of RadTreeView. Properties, methods and events relevant for RadTreeView can be used in RadDataFilter as well.

See Also

In this article
See Also
Not finding the help you need?
Contact Support