New to Telerik UI for ASP.NET AJAX? Download 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:


  • 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')



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

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
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;
Imports System
Imports Telerik.Web.UI
namespace RadSpel003
    Partial Public Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
            RadSpell1.WordIgnoreOptions = WordIgnoreOptions.UPPERCASE Or WordIgnoreOptions.RepeatedWords
            RadSpell1.FragmentIgnoreOptions = FragmentIgnoreOptions.EmailAddresses Or FragmentIgnoreOptions.Urls
        End Sub
    End Class
End Namespace
In this article
Not finding the help you need? Improve this article