Provides the default PropertyGrid commands for editing, resetting, expanding, sorting, and showing auxiliary UI.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridDefaultContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentRadContextMenuPropertyGridDefaultContextMenu
Implements:
Inherited Members
Constructors
Creates the localized context-menu commands for the specified PropertyGrid table and subscribes to localization changes.
public PropertyGridDefaultContextMenu(PropertyGridTableElement propertyGridElement)
The table whose selected item and settings control the menu.
Properties
Gets the Edit menu item
public PropertyGridMenuItem EditMenuItem { get; }
Gets the Expand/Collapse menu item.
public PropertyGridMenuItem ExpandCollapseMenuItem { get; }
Gets the Reset menu item.
public PropertyGridMenuItem ResetMenuItem { get; }
Gets the Show description menu item.
public PropertyGridMenuItem ShowDescriptionMenuItem { get; }
Gets the Show toolbar menu item.
public PropertyGridMenuItem ShowToolbarMenuItem { get; }
Gets the Sort menu item.
public PropertyGridMenuItem SortMenuItem { get; }
Methods
Updates command availability, checked states, right-to-left layout, and sort-item visibility before the menu opens.
protected override void OnDropDownOpening(CancelEventArgs args)
The opening event data, which can cancel the menu opening.
Overrides:
Sets the visibility of the sort/group items depending on whether the functionality is enabled.
protected virtual void SetSortItemsVisibility()