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.
aspx |
<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>
|