ClassRadDataFilter
Displays a hierarchical collection of filter expressions.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Data Controls")]
public class RadDataFilter : RadTreeView, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IFilterable, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadTreeViewRadDataFilter
Implements:
Inherited Members
Constructors
RadDataFilter()
Initializes a new instance of the RadDataFilter class.
Declaration
public RadDataFilter()
Properties
AllowAdd
Gets or sets a value indicating whether adding new nodes is allowed.
Declaration
public override bool AllowAdd { get; set; }
Property Value
true if [allow edit]; otherwise, false.
Overrides
AllowDragDrop
Gets or sets a value indicating whether drag and drop operation with RadDataFilter nodes is enabled.
Declaration
public override bool AllowDragDrop { get; set; }
Property Value
The default value is false.
Overrides
AllowEdit
Gets or sets a value indicating whether editing is allowed.
Declaration
public override bool AllowEdit { get; set; }
Property Value
true if [allow edit]; otherwise, false.
Overrides
AllowRemove
Gets or sets a value indicating whether removing nodes is allowed.
Declaration
public override bool AllowRemove { get; set; }
Property Value
true if [allow edit]; otherwise, false.
Overrides
AutoGenerateDescriptorItems
Gets or sets the auto generate descriptor items.
Declaration
public bool AutoGenerateDescriptorItems { get; set; }
Property Value
The auto generate descriptor items.
DataFilterElement
Gets the data filter element.
Declaration
public RadDataFilterElement DataFilterElement { get; }
Property Value
The data filter element.
DataSource
Gets or sets the data source that the RadDataFilter is displaying filters for.
Declaration
public override object DataSource { get; set; }
Property Value
Overrides
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
Descriptors
A collection of descriptor items used to identify the property names and their corresponding types.
Declaration
public DataFilterItemOwnerCollection Descriptors { get; }
Property Value
Expression
Gets or sets the expression.
Declaration
public string Expression { get; set; }
Property Value
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
ItemHeight
Gets or sets the height of the item.
Declaration
[Browsable(false)]
public override int ItemHeight { get; set; }
Property Value
The height of the item.
Overrides
LineColor
Gets or sets the color of the line.
Declaration
public override Color LineColor { get; set; }
Property Value
The color of the line.
Overrides
LineStyle
Gets or sets the line style.
Declaration
public override TreeLineStyle LineStyle { get; set; }
Property Value
A TreeLineStyle that represents the style used for the lines between the nodes. The default is TreeLineStyle.
Overrides
Nodes
Gets the collection of tree nodes.
Declaration
[Browsable(false)]
public override RadTreeNodeCollection Nodes { get; }
Property Value
A System.Windows.Forms.TreeNodeCollection that represents the tree nodes assigned to the data filter control.
Overrides
ShowLines
Gets or sets a value indicating whether [show lines].
Declaration
public override bool ShowLines { get; set; }
Property Value
true if [show lines]; otherwise, false.
Overrides
SortFieldNames
Gets or sets a value indicating whether the name of fields in fields drop down should be sorted.
ToggleMode
Gets or sets a value indicating the default tree view toggle mode.
Declaration
public override ToggleMode ToggleMode { get; set; }
Property Value
Overrides
Methods
ApplyFilter()
Applies the filter to the DataSource.
Declaration
public void ApplyFilter()
CreateTreeViewElement()
Creates and returns a new instance of the tree view element for data filtering.
Declaration
protected override RadTreeViewElement CreateTreeViewElement()
Returns
A new RadDataFilterElement instance.
Overrides
EndInit()
Signals the object that initialization is complete.
Declaration
public override void EndInit()
Overrides
LoadXMLWithReader(XmlReader, params Type[])
Loads the XML with reader.
SaveXMLWithWriter(TextWriter, params Type[])
Saves the XML with writer.
Declaration
protected override void SaveXMLWithWriter(TextWriter writer, params Type[] extraTypes)
Parameters
writer
The writer.
extraTypes
Type[]
The extra types.
Overrides
Events
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 Value