[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Gantt
  [Expand]Card View
   Reporting
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Getting Started
   [Collapse]Concepts
     ASPxRichEdit Control
    [Expand]Document
     Supported Document Formats
     Import and Export
     Print Documents
     Formatting Characters
     Formatting Paragraphs
     AutoCorrect
    [Collapse]Fields
     [Expand]Field Codes
     Mail Merge
     Simple View
     Table of Contents
     Restrictions
     Spell Checking
    [Expand]Client API
    [Expand]Built-in Dialogs
     Adaptivity
     HTML Tag Interpretation
     Keyboard Shortcuts
   [Expand]Examples
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Fields

In the DevExpress ASP.NET Rich Text Editor, Document Fields serve as placeholders in a document, which are replaced with actual data from the data source when the document is displayed or printed.

To simplify many common tasks when working with fields, the RichEdit UI provides the following commands and shortcuts. You also can accomplish these tasks using the corresponding Client Commands

Task

UI Command / Shortcut Key

Client command

Insert a field

Click the Create Field button in the ribbon's Mail Merge tab.

Or press CTRL+F9.

RichEditCommands.createField

Show all field codes

Click the Show All Field Codes button in the Mail Merge ribbon tab.

RichEditCommands.showAllFieldCodes

Show all field results

Click the Show All Field Results button in the Mail Merge ribbon tab.

-

Toggle between field codes and field results for selected fields

Select a range containing fields and press SHIFT+F9 or click the Toggle Field Codes item in the context menu.

RichEditCommands.showFieldCodes - to show the selected fields' codes.

Toggle between field codes and field results for all fields of the active sub-document

Press ALT+F9.

-

Update selected field values

Select a range containing fields and press F9 or click the Update Field item in the context menu.

RichEditCommands.updateField

Update all field values of all sub-documents

Click the Update All Fields button in the Mail Merge ribbon tab.

RichEditCommands.updateAllFields

Insert a date field

Click the Create Field and select DATE in the Mail Merge ribbon tab Press ALT+SHIFT+D.

RichEditCommands.createDateField

Insert a time field

Click the Create Field and select TIME in the Mail Merge ribbon tab or press ALT+SHIFT+T.

RichEditCommands.createTimeField

Insert a page number field

Click the Page Number button in the Insert ribbon tab or press ALT+SHIFT+P

RichEditCommands.createPageField

Insert a page count field

Click the Page Count button in the Insert ribbon tab.

RichEditCommands.createPageCountField

Insert a table of contents field

Click the Table of Contents button in the References ribbon tab.

RichEditCommands.insertTableOfContents

See the Field Codes topic for the supported field codes and their structure.

Expanded See Also

Is this topic helpful?​​​​​​​