New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Ignoring Words and Fragments

RadSpell can be configured to ignore certain words or text fragments by setting the WordIgnoreOptions and FragmentIgnoreOptions properties:

WordIgnoreOptions

  • None: no words will be ignored when spellchecking

  • UPPERCASE: specifies to ignore words in CAPITALS (e.g. 'UNESCO')

  • WordsWithCapitalLetters: specifies to ignore words in Capitals (e.g. 'Washington')

  • RepeatedWords: specifies to not consider repeating words as errors (e.g. 'very very')

  • WordsWithNumbers: specifies to ignore words containing numbers (e.g. 'l8r')

FragmentIgnoreOptions

Example

The example below demonstrates how to set multiple WordIgnoreOptions and multiple FragmentIgnoreOptions

ASP.NET
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<telerik:RadSpell
   ID="RadSpell1"
   runat="server"
   ControlToCheck="TextBox1"            
   WordIgnoreOptions="UPPERCASE,RepeatedWords"
   FragmentIgnoreOptions="EmailAddresses,Urls"
/> 
C#
using System;
using Telerik.Web.UI;
namespace RadSpel003
{
   public partial class _Default : System.Web.UI.Page
   {
	   protected void Page_Load(object sender, EventArgs e)
	   {
		   RadSpell1.WordIgnoreOptions = WordIgnoreOptions.UPPERCASE | WordIgnoreOptions.RepeatedWords;
		   RadSpell1.FragmentIgnoreOptions = FragmentIgnoreOptions.EmailAddresses | FragmentIgnoreOptions.Urls;
	   }
   }
} 	
In this article
Example
Not finding the help you need?
Contact Support