Adding tools to GridHTMLEditorColumn

3 posts, 0 answers
  1. Ryan
    Ryan avatar
    12 posts
    Member since:
    Oct 2007

    Posted 11 Mar 2010 Link to this post

    Ok so I really like RadGrid, and now I have been using the GridHTMLEditorColumn column type more and more. One issue I am having is that i would like to add the remaining tool bars to the control so that the user has more control of the HTML. I have searched the forums and have seen some discussion, but none of the solutions have worked for me.

    1. How do I add the "hidden" tools since this appears to be radeditor?
    2. How can I maximize the width of the control in the RadGrid edit form?

    Good day to us all.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2010 Link to this post


    You can access the Editor control and add the required tools from code behind. Also you can set the width for each controls from server side. Here is the code example.


        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
                GridEditFormItem editItem = (GridEditFormItem)e.Item;  
                RadEditor editor = (RadEditor) editItem["Editor"].Controls[0];  
                // Add the required tools to editor  
                EditorToolGroup main = new EditorToolGroup();  
                EditorTool copy = new EditorTool();  
                copy.Name = "Copy";  
                copy.ShortCut = "CTRL+C";  
                EditorTool paste = new EditorTool();  
                paste.Name = "Paste";  
                paste.ShortCut = "CTRL+V";  
                // Set the width for controls in edit form  
                editor.Width = Unit.Pixel(800);  
                TextBox textBox = (TextBox)editItem["CompanyName"].Controls[0];  
                textBox.Width = Unit.Pixel(500);  


  3. Snehith
    Snehith avatar
    4 posts
    Member since:
    Sep 2014

    Posted 16 Apr 2015 in reply to Shinu Link to this post

    How to add color tool properties to the tool bar?
Back to Top