Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[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
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [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]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[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, please 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.

How would you rate this topic?​​​​​​​