I have the following requirement:
I got the above working. However, when a French users enters purely English text in the textbox and select English from the drop down, the control still do the spell checking as if French is selected. I am using version 2011.1.519.40 and asp.net 4.0.
I noticed that the issue occurs when only if I set the DictionryLanguage property
Here is the code I have used
Please let me know if I missed anything
- Radspell control to spell check a textbox
- Radspell supports English and French languages
- When an English user views the page, the English language is preselected from the dropdown, French language is selected otherwise
I got the above working. However, when a French users enters purely English text in the textbox and select English from the drop down, the control still do the spell checking as if French is selected. I am using version 2011.1.519.40 and asp.net 4.0.
I noticed that the issue occurs when only if I set the DictionryLanguage property
Here is the code I have used
Public Class _Default Inherits System.Web.UI.Page Dim language As String Protected Sub RadSpell1_Init(sender As Object, e As EventArgs) Handles RadSpell1.Init RadSpell1.SupportedLanguages = New String() {"en-us", "English", "fr-fr", "French"} If language = "1" Then RadSpell1.DictionaryLanguage = "fr-fr" Else RadSpell1.DictionaryLanguage = "en-us" End If End Sub Private Sub Page_PreInit(sender As Object, e As System.EventArgs) Handles Me.PreInit If Request.QueryString.AllKeys.Contains("lang") Then language = Request.QueryString("lang").ToString End If End SubEnd Class<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TelerikRadSpellPOC._Default" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"></asp:Content><asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> <h2> Welcome to ASP.NET! </h2> <div> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="TextBox1" /> </div></asp:Content>Please let me know if I missed anything
