Skip to main content

ASPxHtmlEditorSpellCheckerSettings.MaximumErrorCountInResponse Property

Specifies the maximum number of spelling errors found before the server sends a response to the client.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll

Declaration

[DefaultValue(100)]
public int MaximumErrorCountInResponse { get; set; }

Property Value

Type Default Description
Int32 100

An Int32 value specifying the number of errors.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to MaximumErrorCountInResponse
ASP.NET MVC Extensions HtmlEditorSettings
.SettingsSpellChecker .MaximumErrorCountInResponse
ASP.NET Web Forms Controls ASPxHtmlEditor
.SettingsSpellChecker .MaximumErrorCountInResponse

Remarks

Use the MaximumErrorCountInResponse property to increase performance while spell checking a long text with the spell checking dialog.

The server checks text spelling, and when the number of spelling mistakes reaches the value specified by the MaximumErrorCountInResponse property, the process stops and the result is sent to the client. The client can accept the suggestion or ignore it. When all suggestions are handled on the client side, the server processes another block of text until the MaximumErrorCountInResponse count of errors is reached, the client receives another batch of spelling suggestions, and so on.

Thus the application performance is significantly increased because the server processes only a certain part of text at one time, when this part of text is actually requested by the client.

You can specify this property value directly in ASPX page markup.

<dx:ASPxHtmlEditor ID="DemoHtmlEditor" runat="server" ClientInstanceName="HtmlEditor">
      <SettingsSpellChecker Culture="English (United States)" MaximumErrorCountInResponse="10">
             <Dictionaries>
                   <dx:ASPxSpellCheckerOpenOfficeDictionary Culture="en-US" DictionaryPath="~/Dictionaries/en_US.dic" GrammarPath="~/Dictionaries/en_US.aff" />
             </Dictionaries>
      </SettingsSpellChecker>
</dx:ASPxHtmlEditor>
See Also