Hosts the PropertyGrid search box and sorting toggles, applying their state to the table's filter and sort descriptors.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridToolbarElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementPropertyGridToolbarElement...
Implements:
Inherited Members
Constructors
public PropertyGridToolbarElement()
Fields
Identifies the toolbar's height, which affects its display and measurement.
public static RadProperty ToolbarElementHeightProperty
Properties
Gets the RadToggleButtonElement that enables Alphabetical view in the RadPropertyGrid
public AlphabeticalToggleButton AlphabeticalToggleButton { get; }
Gets the RadToggleButtonElement that enables CategorizedAlphabetical view in the RadPropertyGrid
public CategorizedAlphabeticalToggleButton CategorizedToggleButton { get; }
Gets or sets the filter operator which will be used for the search.
[Browsable(true)]
public FilterOperator FilterOperator { get; set; }
Gets or sets the property name by which the search will be performed.
[Browsable(true)]
public string FilterPropertyName { get; set; }
Gets or sets the value by which the search will be performed.
[Browsable(true)]
public object FilterValue { get; set; }
Gets the parent PropertyGridElement.
public PropertyGridElement PropertyGridElement { get; }
Gets the RadTextBoxElement.
public ToolbarTextBoxElement SearchTextBoxElement { get; }
Gets or sets the height of the PropertyGridToolbarElement.
public float ToolbarElementHeight { get; set; }
Methods
Creates the search box and sorting toggles, initializes label-based filtering, and subscribes to their events.
protected override void CreateChildElements()
Overrides:
Removes toolbar event subscriptions during managed-resource disposal.
protected override void DisposeManagedResources()
Overrides:
Executes a search with the current state of the filter.
protected virtual void ExecuteSearch()
Configures the toolbar to lay out its controls horizontally within the available size.
protected override void InitializeFields()
Overrides:
Constrains the toolbar's measured height to ToolbarElementHeight.
Re-measures the toolbar and refreshes table layout when its height changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The changed property and its old and new values.
Overrides:
Executed when one of the toggle buttons ToggleState changes.
protected virtual void OnToggleButtonToggleStateChanged(RadToggleButtonElement button, StateChangedEventArgs args)
The button that triggered the event.
argsStateChangedEventArgsThe event arguments.
Synchronizes the default toggle buttons with the table's sort mode and whether category group descriptors exist.
public virtual void SyncronizeToggleButtons()
Removes the event subscriptions established by WireEvents().
protected virtual void UnwireEvents()
Subscribes to search-text, search-focus, and sorting-toggle events.
protected virtual void WireEvents()