Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Context Menu Customization

H
AA
UN
RE
AB
V
X
C
ZF
FN
FF
FS
FG
FK
7
1
2
3
4
5
6
FC
I
E
ZP
PG
U
N
M
AO
AI
8
AL
AC
AR
AJ
K
H
ZS
L
ZE
FD
R
SA
N
ZP
B
ZT
T
ZI
P
ZL
K
I
ZH
H
O
PN
PC
TE
X
ZS
U
P
ZS
SP
M
O
SZ
J
B
ZB
PC
RE
TO
T
UP
A
CA
IN
IS
UD
M
ZI
CF
I
ZM
P
FC
FR
U
ZP
Q
M
X
V
ZF
F
W
DV
L
P
ZS
R
ZV
F
JT
ZO
A
T
R
M
N
U
ZS
S
ZB
O
L
W
C
B
H
JL
ZT
K
TG
O
ZR
I
D
A
BE
L
R
ZM
M
P
ZC
BA
F
ZA
TL
TC
TR
CL
CC
CR
BL
BC
BR
N
JH
ZN
E
G
R
X
K
ZO
A
V
ZP
HO
FO
ZC
C
JD
B
SH
SA
W
C
D
TW
P
AF
AE
  • Undopo
    Undo
  • Cut
    Clipboardpo
    Clipboard
  • v
    v
    po
    po
    po
    Fontpo
    dialogboxlauncherFont
  • po
    po
    Paragraphpo
    dialogboxlauncherParagraph
  • Stylespo
    Styles
  • Editing
  • Table Style Optionspo
    Table Style Options
  • Table Stylespo
    Table Styles
  • v
    v
    Borders & Shadingspo
    dialogboxlauncherBorders & Shadings
  • Navigation
  • Options
  • Header from Top:
    +
    -
    Footer from Bottom:
    +
    -
    Positionpo
    Position
  • Close
  • v
    Shape Stylespo
    Shape Styles
  • dialogboxlauncherArrange
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Context menu 
A context menu (also called contextual, 
shortcut, and popup or pop-up menu) is a 
menu in a graphical user interface (GUI) 
that appears upon user interaction, such as 
a right-click mouse operation. A context 
menu offers a limited set of choices that are 
available in the current state, or context, of 
the operating system or application to 
which the menu belongs. Usually the 
available choices are actions related to the 
selected object. From a technical point of 
view, such a context menu is a graphical 
control element. 
 
History 
Context menus first appeared in the Smalltalk environment on the Xerox 
Alto computer, where they were called pop-up 
menus. The NEXTSTEP operating system further developed the idea, 
incorporating a feature whereby the right or middle mouse button brought 
the main menu (which was vertical and automatically changed depending on 
context) to the location of the mouse, thereby eliminating the need to move 
the mouse pointer all the way across the large (for the time) NextStep 
screen. 
Microsoft Office v3.0 introduced the context menu for copy and paste 
functionality in 1990. Lotus 1-2-3/G for OS/2 v1.0 added additional formatting 
options in 1991. Borland Quattro Pro for Windows v1.0 introduced the 
Properties context menu option in 1992. 
 
Source: Wikipedia (Context menu) 
Did this demo address your needs?
If you’d like us to extend this demo further, please describe your needs below.
Thank you in advance for your cooperation.
SEND FEEDBACK

The ASP.NET Rich Text Editor (ASPxRichEdit) enables you to customize its context menu. By handling the PopupMenuShowing client-side event, you can perform the following actions with the ASPxRichEdit's context menu

  • Manipulate menu items - add new items, remove or disable existing ones (use the e.menuItems property);
  • Prevent the context menu from being displayed (use the e.cancel property).

In this demo, the PopupMenuShowing event is handled to illustrate the context menu customizing capabilities. Using check boxes, you can switch the context menu availability (via e.cancel) and control whether to clear or retain the default menu items when populating the menu with custom items (via e.menuItems). The custom items are implemented as ASPxClientRichEditPopupMenuItem objects by their name property. Clicks on custom menu items are processed using the CustomCommandExecuted client event. Its handler identifies the activated item by its name and performs the corresponding action on the client-side. In this demo, custom menu items create the Date and Time fields (using the createDateField and createTimeField client commands) and search the selected text in Google (the selected text is received via the Client API).

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxRichEditDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxRichEditDemos
Calibri