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

Rad Spell for ASP.NET 1.1

15 Answers 160 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Venkat
Top achievements
Rank 1
Venkat asked on 11 Jul 2008, 05:49 AM
Can we use Radspell Ajax in visual studio 2003, if so then please let me know what are the steps that I need to follow to configure it and run it.

Thanks in Advance
Venkat

15 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Jul 2008, 09:01 AM
Hi Venkat,

The RadControls for ASP.NET Ajax controls are compiled against .NET 2.0 and they cannot be used in ASP.NET 1.1 environment. You can see the System requirements and browser support for the Ajax controls suite here.

It is a prerequisite to have ASP.NET AJAX installed when using Telerik RadControls for ASP.NET AJAX. For more details please refer to this online help topic.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Venkat
Top achievements
Rank 1
answered on 11 Jul 2008, 03:08 PM
Hi Rumen,
          Thanks for the reply. what is the alternative if I want to have Radspell for  visual studio 2003 (Net 1.x.). From where can I download Radspell 3.xfor  visual studio 2003 (Net 1.x.) trial version.  
 
Thanks,
Venkat
0
Rumen
Telerik team
answered on 11 Jul 2008, 03:45 PM
Hi Venkat,

You need to use the classic version of RadSpell, which works under ASP.NET 1.1. You can obtain it from the RadControls for ASP.NET installation (see the attached screenshot) and use the RadSpell.dll and its RadControls/Spell folder from the NET1 installation folder.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Venkat
Top achievements
Rank 1
answered on 13 Jul 2008, 03:00 PM
Hi Rumen,
           I tried as you suggested but when I run the page, enter some text in the multiline textbox which is the controltocheck of the Radspell and then click on the Radspell an empty blank dialog is opening and its not showing any spell suggestions. Do you have any idea whether I missed some specific property setting of the radspell.

Regards,
Venkatesan S
0
Rumen
Telerik team
answered on 14 Jul 2008, 08:49 AM
Hi Venkat,

The problem that you experience might arise if the RadControls folder is included in Visual Studio Solution box. We have a k.b article that handles this problem: Compiler Error Message: BC30451: Name 'this' is not declared.

Below are the steps to fix the problem:
  1. Open your Visual Studio project.
  2. In the Solution Explorer right-click on the RadControls folder and choose "Exclude from project".
  3. Open Windows Explorer, navigate to your project's base folder and back up the RadControls folder from your project, especially any customized files you may have (ConfigFile.xml, ToolsFile.xml, any css files, images. etc).
  4. Delete the old RadControls folder.
  5. Navigate to the installation folder of RadControls.
  6. Copy a fresh RadControls folder from the installation folder and paste it to the root of your web application.
  7. Run your project locally.
If RadControls is placed outside of the project folder, then please make sure that it is not configured as a Web Application. It should be configured only as a Virtual Folder. You can review the following KB article for more information:
Error Message: Could not load type 'Telerik.WebControls.Dialogs.Dialog'.

If you still experience this problem, please send a sample working project together with the /bin and /RadControls folder that demonstrates the blank dialogs' problem. I will examine your code and try to provide a solution.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Venkat
Top achievements
Rank 1
answered on 17 Jul 2008, 05:43 PM
Hi Rumen,
           Now I am able to add Rad Spell in my project.Thanks for your support. I want to know one more thing like can we control the dialog opened for spell checking  for example I want it to be opened at a fixed location in a web form and make it non movable.

Regards,
Venkatesan S
0
Rumen
Telerik team
answered on 18 Jul 2008, 07:24 AM
Hello Venkat,

The pop up position of the RadSpell dialog is controlled by the ShowWindow function placed in the \RadControls\Spell\Scripts\3_x_x\RadWindow.js file. You should open this file, locate the ShowWindow function and modify the x and y values in the following lines

this.ContentWrapperTable.style.left=x+"px";
this.ContentWrapperTable.style.top=y+"px";

For example:

RadWindow.prototype.ShowWindow=function(_5,x,y){
if(null==_5){
_5=true;
}
var _8=_5?"":"none";
if(this.ContentWrapperTable){
this.ContentWrapperTable.style.display=_8;
}
if(_5){
if(null!=x&&null!=y){
x+=10;
if(this.ContentWrapperTable){
this.ContentWrapperTable.style.left=0+"px";
this.ContentWrapperTable.style.top=0+"px";
}

Once you are ready, set the UseEmbeddedScripts property of RadSpell to false, e.g.

<radS:RadSpell id="RadSpell1" UseEmbeddedScripts="false" runat="server" ControlToCheck="textBox1" />

Thus the spellchecker will read its scripts from the RadControls/Spell/Scripts folder

All the best,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Venkat
Top achievements
Rank 1
answered on 06 Aug 2008, 04:44 AM
Rumen,
       It works fine as expected. Thanks for the support.Can you please let me know whether the same thing can be achieved without changing the Javascript I mean just by setting the properties of the control. Because in my scenario once I deploy it on the production server,if I have to change the script over there, it will be a burden to do that since each of our client has to purchase your component separately and they have to install it on their server.

Regards,
Venkat
0
Rumen
Telerik team
answered on 06 Aug 2008, 08:33 AM
Hi Venkat,

All you need to do is to crate a user control and put the spellchecker declaration and the following js code under it:

        <radS:RadSpell id="RadSpell1" runat="server" ControlToCheck="textBox1" />
        <script type="text/javascript">
        RadWindow.prototype.ShowWindow=function(_5,x,y)
        {
            if(null==_5){
            _5=true;
            }
            var _8=_5?"":"none";
            if(this.ContentWrapperTable){
            this.ContentWrapperTable.style.display=_8;
            }
            if(_5)
            {
                if(null!=x&&null!=y)
                {
                    x+=10;
                    if(this.ContentWrapperTable)
                    {
                        this.ContentWrapperTable.style.left=0+"px";
                        this.ContentWrapperTable.style.top=0+"px";
                    }
                }
            }
        }
        </script>

Thus the dialog will be able to control the position of the spell dialog from a centralized position without modifying the spellchecker scripts.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Venkat
Top achievements
Rank 1
answered on 06 Aug 2008, 09:20 AM
Rumen,
 Thanks for the immediate response let me try that and come back to you,
Also I wanted some clarifications regardign the following

1) How the Radspell works internally meaning when I initiate the spell check, will it make a server call to do the spell check or it will store the dictionary in the client's machine once I initate the spell check in my page
2) Is there anyway I can check the grammatical errors using the radspell

Regards,
Venkat
0
Rumen
Telerik team
answered on 07 Aug 2008, 01:59 PM
Hi Venkat,

The spellchecker makes Ajax calls to the server to obtain the suggestions from the dictionary placed on the server. The spellchecker does not store its dictionaries on the client computers.

RadSpell does not offer the requested grammar checking. We have discussed the idea of extending the speller to offer grammar checking, but we postponed it indefinitely due to the performance impact such control would have on the page and on the server. I do not believe we will get to working on such product in the next year.

Are you familiar with any ASP.NET grammar control on the market? Have you tested any? We will be happy to hear your thoughts.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Venkat
Top achievements
Rank 1
answered on 07 Aug 2008, 05:54 PM
Hi Rumen,
        Thank you for the clarifications. I evaluated the Radspell in all angles and it seems to be a perfect one for my application except one thing.In my application scenario I have both asp and aspx pages so I want to load the Radspell in a similar manner,i.e., in both the asp and aspx pages the pages will make a call to another aspx page which actually loads as a popup window with the spell dialog spell check function initiated so the enduser should feel that the spell dialog is directly loaded from the page.I tried to do this based on the thread we had earlier below but not able to achieve the look and feel, since the page in which I load the spell dialog the dialog moves within the page and is there any way I can hide the page that loads the popup.

Regards,
Venkat
0
Rumen
Telerik team
answered on 11 Aug 2008, 01:26 PM
Hi Venkat,

Please, check whether the following live example could be helpful for your scenario: Placing on ASP or HTML Pages.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Venkat
Top achievements
Rank 1
answered on 14 Aug 2008, 06:16 AM
Rumen,
  Thanks for the reply. can you please let me know the license cost details for Rapidspell for asp.net 1.1, I need only this control and not the entire set of controls.Also please let me know whether the control is backward compatible.
whether the dictionary can be loaded dynamically based on the client culture.
Regards,
Venkatesan S
0
Fani
Telerik team
answered on 15 Aug 2008, 12:49 PM
Hi Venkat,

Please, note that the development of new features in RadControls for ASP.NET Classic is stopped in favor of the new RadControls for ASP.NET AJAX suite and we provide only hotfixes for the classic controls.

RadSpell does not offer out-of-the box the dynamically dictionary load depending on the client culture.
Nevertheless, you can find below an example demonstrating how to parse the dictionary files in the ~/RadControls/Spell/TDF folder and enable the spell check languages based on if the tdf files exist. You can enhance the code to fit your scenario and load the dictionary dynamically based on the client culture:

ASPX:

<table width="98%">
    <tr>
        <td>
            <asp:TextBox ID="textBox1" Runat="server" Rows="5" Columns="50" TextMode="MultiLine">Thisz is a server side TextBox with some delibirate mistakees.</asp:TextBox>
            <br/><br/>
            <rad:RadSpell ID="RadSpell1" Runat="server" ControlToCheck="textBox1" />
        </td>
    </tr>
</table>
</form>

ASPX.CS

    protected void Page_Load(object sender, EventArgs e)
    {
        string path = Server.MapPath(@"~/RadControls/Spell/TDF/");
        Hashtable hashTable = new Hashtable(3);
        hashTable.Add("en-US", "English");
        hashTable.Add("de-DE", "German");
        hashTable.Add("fr-FR", "French");
        hashTable.Add("it-IT", "Italian");

   
        DirectoryInfo dir = new DirectoryInfo(path);

        string[] files = Directory.GetFiles(path);
        RadSpell1.SupportedLanguages = new string[files.Length*2];
        for (int i = 0; i < files.Length;i++)
        {
            string language = files[i].Substring(files[i].LastIndexOf("\\") + 1).Replace(".tdf", "");

            RadSpell1.SupportedLanguages[i*2] = language;

            RadSpell1.SupportedLanguages[i * 2 + 1] = hashTable[language].ToString();

        }
    }

You can download a test project from here.

Unfortunately RadSpell is not available for purchase separately since all controls included in the RadControls suite are shipped in a singe assembly. You can review the available pricing and licensing options here: www.telerik.com/Purchase. If you purchase a RadControls for ASP.NET AJAX license now, we will provide you with a complimentary license for RadSpell which you can use with ASP.NET 1.1.

If there is anything else I can assist you with, please let me know.

Greetings,
Fani
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Spell
Asked by
Venkat
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Venkat
Top achievements
Rank 1
Fani
Telerik team
Share this question
or