This is a migrated thread and some comments may be shown as answers.

Automatic spell check for radtextbox.

1 Answer 37 Views
Input
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 01 Oct 2013, 08:35 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 01 Oct 2013, 12:54 PM
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.
Tags
Input
Asked by
Freddy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or