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

RadSpell within a frame

4 Answers 70 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 19 Jan 2010, 01:06 AM
Hi,

I have two frames on my webpage: Menu frame, and content frame. I have RadSpell set up on the content frame. While spell checking is in progress (dialog open), if I use Menu frame to navigate content frame to a different URL, I am getting a javascript error. Is there any way to force close the spell check dialog when page is unloaded? Maybe a javascript function I can call upon onunload..?

Thanks!
Kate

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jan 2010, 03:44 PM
Hi Kate,

Yes, you can close the spellchecker dialog when page is unloaded using the following code:

var spell = $find('<%= RadSpell1.ClientID %>');
spell.get_dialogOpener()._dialogContainers.SpellCheckDialog.close();


Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sam
Top achievements
Rank 1
answered on 13 Dec 2012, 06:48 PM
I have rad spell in an iframe that is on a aspx (parent) page.  I want to spell check the textbox on the aspx page but I am having trouble setting the ControlToCheck property.  RadSpell will not recognize the control.  How can get it to see the textbox on the aspx page.
0
Sam
Top achievements
Rank 1
answered on 13 Dec 2012, 06:49 PM
Can I see the part of your code that helps RadCheck recognize controls outside of the IFRAME it resides in?
0
Rumen
Telerik team
answered on 17 Dec 2012, 04:30 PM
Hi,

My recommendation is to get a reference to the textbox in the other frame and obtain its text. After that implement a custom text source as shown in this Custom Text Source demo and this help article: Custom Text Source.

Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Spell
Asked by
Ram
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Sam
Top achievements
Rank 1
Share this question
or