Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET > Spell > Checking Custom Control

Not answered Checking Custom Control

Feed from this thread
  • coop coop's avatar

    Posted on Aug 29, 2008 (permalink)

    I have a custom control (cuteEditor control) I'm trying to check with RADSpell but when I click in the spell check button on the IE page the spell check box pops up but has the folowing text in the box:
    #1p#2t#9#7#7t #1/p#2

    I only have the miss-spelled word tesst in my control.  Does anyone have any ideas on what might cause this?

    Thanks!

    Reply

  • Obi-Wan Kenobi Master avatar

    Posted on Sep 1, 2008 (permalink)

    You should spellceck the CuteEditor's iframe
    (e.g. iframe id="CE_Editor1_ID_Frame" )
    A simple example which illustrates how to spellcheck an IFrame is available here:
    http://demos.telerik.com/aspnet/Spell/Examples/ClientSide/DefaultCS.aspx

    Reply

  • coop coop's avatar

    Posted on Sep 4, 2008 (permalink)

    Thanks for replying ...I have been looking at your suggestions and I'm still not sure how to make it work.  I looked at the example in the link you posted but for some reason it's only showing the code for C# even if your hit the button for VB.  I have a hard enough time with VB and I can't seem to make since of the C#. 

    Would you happen to know of an example I could use in VB?

    Thanks again for your help!

    Reply

  • Telerik Admin admin's avatar

    Posted on Sep 5, 2008 (permalink)

    Hello coop,

    The example does show the VB version as well - clicking on the VB button properly loads the VB codebehind.
    We were about to paste it here for your convenience, however, there is nothing in the codebehind that is actually needed for the example - it is practically an empty VB file. All the "hookup" code between the two components is done with clientside scripting (JavaScript), and declarative RadSpell properties. What you need to examine and use is the .ASPX file itself. All that needs to be changed in the code there to hook the spell to another IFRAME (e.g. the iframe of your cute editor) is to provide this iframe's client id.

    Best regards,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • coop coop's avatar

    Posted on Sep 5, 2008 (permalink)

    OK...I see what I was missing now on the example page code.  That makes since now.

    Unfortunately that still did not make much since to me (my lack of experience) but thank you very much for trying to help!

    Just in case someone else has a similar situation, here's how I figured out how to get this all working.

    I found that the cuteEditor control had a FrameID property so I put a label on my form and set  label1.text = editor1.frameid and when I ran the app I found the name to be: 
     CE_ctl00_ContentPlaceHolder1_TabsClaim_tabHandling_tabsClaimHandling_tabOrderReq_Claim_Fault3_Editor1_ID_Frame

    I set the RadSpell ControlToCheck property to this name and set the IsClientId property to true.  RadSpell is now checking the cuteEditor box correctly.  

    There's probably a way to give the FrameID a more user friendly name but since the FrameId property of the cuteEditor control only has a get method, I'm not sure how to do this. 

    Here's what my working RADSpell HTML looks like:

    <rad:RadSpell ID="RadSpell2" runat="server" ControlToCheck="CE_ctl00_ContentPlaceHolder1_TabsClaim_tabHandling_tabsClaimHandling_tabOrderReq_Claim_Fault3_Editor1_ID_Frame" Skin="Office2007" Style="position: relative" IsClientID="True" />

    Thanks again for help with this ...I really appreciate it!!

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET > Spell > Checking Custom Control

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.