RadSpell within a frame

5 posts, 0 answers
  1. Lion
    Lion avatar
    23 posts
    Member since:
    Aug 2012

    Posted 18 Jan 2010 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 19 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sam
    Sam avatar
    2 posts
    Member since:
    Dec 2012

    Posted 13 Dec 2012 Link to this post

    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.
  5. Sam
    Sam avatar
    2 posts
    Member since:
    Dec 2012

    Posted 13 Dec 2012 Link to this post

    Can I see the part of your code that helps RadCheck recognize controls outside of the IFRAME it resides in?
  6. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 17 Dec 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017