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

[Solved] RadGrid GridHTMLEditorColumn properties

2 Answers 227 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marcio Nascimento
Top achievements
Rank 1
Marcio Nascimento asked on 06 Aug 2009, 08:06 PM
Hi there,

It's is possible to hide the toolbar and the footer of a GridHTMLEditorColumn in edit mode?

Marcio Nascimento

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 07 Aug 2009, 07:48 AM
Hello Marcio,

You can access the editor in the column and set the following cssclass code to hide the toolbar and the footer cell of the HTMLEditorColumn when the grid is in EditMode:
c#:
 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode
        { 
            GridEditableItem item = (GridEditableItem)e.Item; 
            RadEditor editor = (RadEditor)item["HTMLEditorColumnUniqueName"].Controls[0]; 
            editor.CssClass = "MyEditor"
        } 
    } 

css:
    .MyEditor .reToolCell, 
    .MyEditor .reEditorModesCell 
    { 
       display:none
    } 

Thanks
Princy.
0
Marcio Nascimento
Top achievements
Rank 1
answered on 07 Aug 2009, 03:14 PM
Thanks.

Marcio Nascimento
Tags
Grid
Asked by
Marcio Nascimento
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Marcio Nascimento
Top achievements
Rank 1
Share this question
or