[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]Card View
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [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
  [Collapse]Spell Checker
   [Expand]Product Information
    Getting Started
   [Collapse]Fundamentals
     Product Class Structure
     Spell Check Algorithms
     Dictionaries
     Checking Spelling in Different Controls
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
  [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]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Checking Spelling in Different Controls

The ASPxSpellChecker component provides you with the capability to check the text in a wide range of text-aware controls. To get the list of controls supported by ASPxSpellChecker, see Supported Controls. This document describes methods for enabling spell check in your application. To learn about spell checking algorithms, and what should be done prior to starting spell check, refer to Spell Check Algorithms.

Expanded Enable Spell Checking in a Control

To specify the control to be processed by ASPxSpellChecker, perform the following steps:

  1. Set the ASPxSpellChecker.CheckedElementID property value of the ASPxSpellChecker control to the ID of the control to be checked.
  2. To provide a correct ID for the spell checker's client script, handle the ASPxSpellChecker.CheckedElementResolve event of the ASPxSpellChecker:

  3. Call the ASPxClientSpellChecker.Check method in, for instance, the button's client-side Click event handler:

Expanded Enable Spell Checking in a Control Container

The ASPxSpellChecker component provides you with the capability to check the text of the controls placed onto the control container. You can do this by calling the ASPxClientSpellChecker.CheckElementsInContainer method in, for instance, the button's client-side Click event handler:

This code uses the ASPxClientControlBase.GetMainElement function, enabling access to the topmost object in the control's object model. This object will be treated by a spell checker as the container that encompasses elements with text contents being checked.

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