I would like to have RadSpell should automatically check the words through the available dictionaries. If we attached two dictionaries to the editor / textbox, may be one word not found in English but the same word can be found in German. So it will be better to check both dictionaries before giving the suggestions. Thanks
Hi Patrick,
You can use the client-side API of RadSpell to change the dictionary language after the first spellchecking and to relaunch the spellchecker for another check:
<script>
var flag = true;
function checkFinished(spell, args) {
args.suppressCompleteMessage(true);
spell.set_dictionaryLanguage('fr-FR');
if (flag) {
setTimeout(function () {
spell.startSpellCheck();
flag = false;
}, 100);
}
}
</script>
<asp:TextBox runat="server" id="TextBox1" Text="genneration" />
<telerik:RadSpell
ID="RadSpell1"
runat="server"
DictionaryPath="~/App_Data/RadSpell"
ButtonType="PushButton"
ControlToCheck="TextBox1"
OnClientCheckFinished="checkFinished"
SupportedLanguages="en-us, English, fr-fr, French"
DictionaryLanguage="en-US"
/>
Regards,
Rumen
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.