Automatic spell check for radtextbox.

2 posts, 0 answers
  1. Freddy
    Freddy avatar
    25 posts
    Member since:
    Feb 2013

    Posted 01 Oct 2013 Link to this post

    I have 3 radtextboxes on a page. I want to enable spell check without using the check button. After the user enter text in first textbox and move to next one, i want to automaticaly spell check the first one and like that for the other two. Please help.

    Freddy
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Oct 2013 Link to this post

    Hi Freddy,

    Please have a look into the following code I tried which works fine at my end.

    ASPX:
    <telerik:RadTextBox ID="RadTextBox1" runat="server" ClientEvents-OnValueChanged="OnValueChanged">
    </telerik:RadTextBox>
    <telerik:RadTextBox ID="RadTextBox2" runat="server" ClientEvents-OnValueChanged="OnValueChanged">
    </telerik:RadTextBox>
    <telerik:RadTextBox ID="RadTextBox3" runat="server" ClientEvents-OnValueChanged="OnValueChanged">
    </telerik:RadTextBox>
    <telerik:RadSpell ID="RadSpell1" runat="server" ButtonType="None" />

    JavaScript:
    <script type="text/javascript">
        function OnValueChanged(sender, args) {
            var spell = $find('<%= RadSpell1.ClientID %>');
            spell.set_controlToCheck(sender.get_id());
            spell.startSpellCheck();
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top