Class
RadExpressionEditor

A control that lets the user input an expression in string form, which it exposes as a LINQ expression.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Expressions.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data")]
public class RadExpressionEditor : Control, IDisposable

Inheritance: objectRadExpressionEditor

Implements: IDisposable

Constructors

RadExpressionEditor()

Initializes a new instance of the RadExpressionEditor class.

Declaration

cs-api-definition
public RadExpressionEditor()

Fields

ErrorsProperty

Identifies the read-only Errors property.

Declaration

cs-api-definition
public static readonly DependencyProperty ErrorsProperty

Field Value

DependencyProperty

ExpressionChangedEvent

Identifies the ExpressionChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ExpressionChangedEvent

Field Value

RoutedEvent

ExpressionErrorEvent

Identifies the ExpressionError routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ExpressionErrorEvent

Field Value

RoutedEvent

ExpressionProperty

Identifies the read-only Expression property.

Declaration

cs-api-definition
public static readonly DependencyProperty ExpressionProperty

Field Value

DependencyProperty

ExpressionTextProperty

Identifies the ExpressionText property.

Declaration

cs-api-definition
public static readonly DependencyProperty ExpressionTextProperty

Field Value

DependencyProperty

IsExpressionValidProperty

Identifies the read-only IsExpressionValid property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsExpressionValidProperty

Field Value

DependencyProperty

IsFieldsDrillDownEnabledProperty

Identifies the IsFieldsDrillDownEnabled property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsFieldsDrillDownEnabledProperty

Field Value

DependencyProperty

ItemProperty

Identifies the property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemProperty

Field Value

DependencyProperty

Properties

Errors

Gets the errors from a failed parsing operation.

Declaration

cs-api-definition
public IEnumerable<ExpressionParserError> Errors { get; }

Property Value

IEnumerable<ExpressionParserError>

Expression

Gets the LINQ Expression.

Declaration

cs-api-definition
public Expression Expression { get; }

Property Value

Expression

ExpressionText

Gets or sets the expression string.

Declaration

cs-api-definition
public string ExpressionText { get; set; }

Property Value

string

IsExpressionValid

Gets a value indicating whether the string the user has entered is a valid expression.

Declaration

cs-api-definition
public bool IsExpressionValid { get; }

Property Value

bool

IsFieldsDrillDownEnabled

Gets or sets a value indicating whether users can drill down into field objects in the Expression editor.

Declaration

cs-api-definition
public bool IsFieldsDrillDownEnabled { get; set; }

Property Value

bool

Item

Gets or sets the item the expression will be evaluated against.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object

ViewModel

Gets or sets the view model of the RadExpressionEditor.

Declaration

cs-api-definition
public ExpressionEditorViewModel ViewModel { get; set; }

Property Value

ExpressionEditorViewModel

Exceptions

ArgumentNullException

if value is null.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the automation infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The class-specific AutomationPeer subclass to return.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Events

ExpressionChanged

Occurs when the expression changes.

Declaration

cs-api-definition
public event RadRoutedEventHandler ExpressionChanged

Event Value

RadRoutedEventHandler

ExpressionError

Occurs when an error occurs while parsing an expression.

Declaration

cs-api-definition
public event RadRoutedEventHandler ExpressionError

Event Value

RadRoutedEventHandler

Extension Methods