New to Telerik UI for WinForms? Start a free 30-day trial

Provides the default PropertyGrid commands for editing, resetting, expanding, sorting, and showing auxiliary UI.

Definition

Constructors

Creates the localized context-menu commands for the specified PropertyGrid table and subscribes to localization changes.

C#
public PropertyGridDefaultContextMenu(PropertyGridTableElement propertyGridElement)
Parameters:propertyGridElementPropertyGridTableElement

The table whose selected item and settings control the menu.

Properties

Gets the Edit menu item

C#
public PropertyGridMenuItem EditMenuItem { get; }

Gets the Expand/Collapse menu item.

C#
public PropertyGridMenuItem ExpandCollapseMenuItem { get; }

Gets the Reset menu item.

C#
public PropertyGridMenuItem ResetMenuItem { get; }

Gets the Show description menu item.

C#
public PropertyGridMenuItem ShowDescriptionMenuItem { get; }

Gets the Show toolbar menu item.

C#
public PropertyGridMenuItem ShowToolbarMenuItem { get; }

Gets the Sort menu item.

C#
public PropertyGridMenuItem SortMenuItem { get; }

Methods

Detaches the localization handler, removes click handlers from root menu items, and disposes the edit, expand/collapse, description, and toolbar items.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true when managed resources should be disposed.

Overrides: RadContextMenu.Dispose(bool)

Updates command availability, checked states, right-to-left layout, and sort-item visibility before the menu opens.

C#
protected override void OnDropDownOpening(CancelEventArgs args)
Parameters:argsCancelEventArgs

The opening event data, which can cancel the menu opening.

Overrides: RadContextMenu.OnDropDownOpening(CancelEventArgs)

Sets the visibility of the sort/group items depending on whether the functionality is enabled.

C#
protected virtual void SetSortItemsVisibility()