Hi,
I have a multi-line ASP.NET TextBox control that I want to spell check using the Telerik SpellCheck control via JS envoked form an image button located beside the TextBox. The textbox is located on a page with many other ASP input controls and multiple TextBoxes with SpellCheck controls.
The click event handler on my web page is a follows:
var radSpellCheck = $find('MyRadSpellCheckCtrlID');
if (radSpellCheck != null) {
radSpellCheck.startSpellCheck();
}
A second imagebutton beside the TextBox is used to resize it (and change the Z-index) allowing the TextBox to take over the entire size of the page to facilitate editing large notes.
When the TextBox is in it's normal layout and size (300px x 150px) and the "startSpellCheck()" is called the spell checker is displayed but none of the changes are reflected back into the TextBox.
However when it's size is maximized the "startSpellCheck()" works, updating the contents of the same TextBox. What is strange, that the keyboard shortcut I have implemented to trigger the same spellcheck code is used, it works in both situations.
Between expanded and normal display mode I all I am doing is changing the height, width, and z-index of the rendered <TextArea/> tag. I don't see why it would work in one instance and no another. Note: My event handler returns FALSE to prevent a post-back.
I have a multi-line ASP.NET TextBox control that I want to spell check using the Telerik SpellCheck control via JS envoked form an image button located beside the TextBox. The textbox is located on a page with many other ASP input controls and multiple TextBoxes with SpellCheck controls.
The click event handler on my web page is a follows:
var radSpellCheck = $find('MyRadSpellCheckCtrlID');
if (radSpellCheck != null) {
radSpellCheck.startSpellCheck();
}
A second imagebutton beside the TextBox is used to resize it (and change the Z-index) allowing the TextBox to take over the entire size of the page to facilitate editing large notes.
When the TextBox is in it's normal layout and size (300px x 150px) and the "startSpellCheck()" is called the spell checker is displayed but none of the changes are reflected back into the TextBox.
However when it's size is maximized the "startSpellCheck()" works, updating the contents of the same TextBox. What is strange, that the keyboard shortcut I have implemented to trigger the same spellcheck code is used, it works in both situations.
Between expanded and normal display mode I all I am doing is changing the height, width, and z-index of the rendered <TextArea/> tag. I don't see why it would work in one instance and no another. Note: My event handler returns FALSE to prevent a post-back.