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

Is it possible to have a GridHTMLEditorColumn with spell checker

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guido Tapia
Top achievements
Rank 1
Guido Tapia asked on 06 Apr 2009, 12:47 AM
Hi All,

Is it possible to add spell checking capabilities to GridHTMLEditorColumn or any details as to how to customise the editor in a GridHTMLEditorColumn?

Thanks

Guido

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 08 Apr 2009, 04:22 PM
Hello Guido Tapia,

You can achieve your goal as you add language for spell check and spell check button.

First of all you need to add the language files and the HttpHandler for the spell check.
For further information review this link to find out how to accomplish this task.

Secondly you need to get the editor from the column's EditManager and to add the spell check button and the language which editor can spell checks.

Here is a code snippet showing how to achieve this:
    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        { 
            GridEditableItem item = e.Item as GridEditableItem; 
            GridHTMLEditorColumnEditor editor = (GridHTMLEditorColumnEditor)item.EditManager.GetColumnEditor("HtmlColumn"); 
            editor.Editor.Languages.Add(new SpellCheckerLanguage("en-US""English")); 
 
 
            EditorToolGroup main = new EditorToolGroup(); 
            editor.Editor.Tools.Add(main); 
            main.Tools.Add(new EditorSeparator()); 
            EditorTool spellCheck = new EditorTool(); 
            spellCheck.Name = "AjaxSpellCheck"
            spellCheck.ShortCut = "CTRL+L"
            main.Tools.Add(spellCheck); 
            main.Tools.Add(new EditorSeparator()); 
        } 
    } 

For further information how to add tools please refer to this online help article.

Kind regards,
Georgi Krustev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Martijn
Top achievements
Rank 1
answered on 02 Oct 2012, 11:59 AM
Fix you deadlinks on this site. Very annoying
Tags
Grid
Asked by
Guido Tapia
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Martijn
Top achievements
Rank 1
Share this question
or