Class RadExpressionEditor
A control that lets the user input an expression in string form, which it exposes as a LINQ expression.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Expressions.dll
Syntax
[TelerikToolboxCategory("Data")]
public class RadExpressionEditor : Control, IDisposable
Constructors
RadExpressionEditor()
Initializes a new instance of the Rad
Declaration
public RadExpressionEditor()
Fields
ErrorsProperty
Identifies the read-only Errors property.
Declaration
public static readonly DependencyProperty ErrorsProperty
Field Value
System.
|
ExpressionChangedEvent
Identifies the ExpressionChanged routed event.
Declaration
public static readonly RoutedEvent ExpressionChangedEvent
Field Value
System.
|
ExpressionErrorEvent
Identifies the ExpressionError routed event.
Declaration
public static readonly RoutedEvent ExpressionErrorEvent
Field Value
System.
|
ExpressionProperty
Identifies the read-only Expression property.
Declaration
public static readonly DependencyProperty ExpressionProperty
Field Value
System.
|
ExpressionTextProperty
Identifies the Expression
Declaration
public static readonly DependencyProperty ExpressionTextProperty
Field Value
System.
|
IsExpressionValidProperty
Identifies the read-only Is
Declaration
public static readonly DependencyProperty IsExpressionValidProperty
Field Value
System.
|
IsFieldsDrillDownEnabledProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsFieldsDrillDownEnabledProperty
Field Value
System.
|
ItemProperty
Identifies the Item property.
Declaration
public static readonly DependencyProperty ItemProperty
Field Value
System.
|
Properties
Errors
Gets the errors from a failed parsing operation.
Declaration
public IEnumerable<ExpressionParserError> Errors { get; }
Property Value
System.
|
Expression
Gets the LINQ Expression.
Declaration
public Expression Expression { get; }
Property Value
System.
|
ExpressionText
Gets or sets the expression string.
Declaration
public string ExpressionText { get; set; }
Property Value
System.
|
IsExpressionValid
Gets a value indicating whether the string the user has entered is a valid expression.
Declaration
public bool IsExpressionValid { get; }
Property Value
System.
|
IsFieldsDrillDownEnabled
Gets or sets a value indicating whether users can drill down into field objects in the Expression editor.
Declaration
public bool IsFieldsDrillDownEnabled { get; set; }
Property Value
System.
|
Item
Gets or sets the item the expression will be evaluated against.
Declaration
public object Item { get; set; }
Property Value
System.
|
ViewModel
Gets or sets the view model of the Rad
Declaration
public ExpressionEditorViewModel ViewModel { get; set; }
Property Value
Exceptions
System. if value is null. |
Methods
add_ExpressionChanged(RadRoutedEventHandler)
Declaration
public void add_ExpressionChanged(RadRoutedEventHandler value)
Parameters
Rad
|
add_ExpressionError(RadRoutedEventHandler)
Declaration
public void add_ExpressionError(RadRoutedEventHandler value)
Parameters
Rad
|
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application
code or internal processes (such as a rebuilding layout pass) call System.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
When implemented in a derived class, returns class-specific System.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. The class-specific System. |
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
remove_ExpressionChanged(RadRoutedEventHandler)
Declaration
public void remove_ExpressionChanged(RadRoutedEventHandler value)
Parameters
Rad
|
remove_ExpressionError(RadRoutedEventHandler)
Declaration
public void remove_ExpressionError(RadRoutedEventHandler value)
Parameters
Rad
|
Events
ExpressionChanged
Occurs when the expression changes.
Declaration
public event RadRoutedEventHandler ExpressionChanged
Event Type
ExpressionError
Occurs when an error occurs while parsing an expression.
Declaration
public event RadRoutedEventHandler ExpressionError