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

Custom toolbar for RadEditor in GridHTMLEditorColumn

1 Answer 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 1
chris asked on 29 Jan 2009, 09:40 PM
I'm using GridHTMLEditorColumn in the RadGrid. How do i customize to RadEditor toolbar when it shows up in the RowEdit mode?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 02 Feb 2009, 04:08 PM
Hi Chris,

Assuming that the GridHTMLEditorColumn you use has unique name of RadEditorColumn, you can access the RadEditor instance inside it as follows:

private void RadGrid1_ItemCreated(object  sender, Telerik.Web.UI.GridItemEventArgs e) 
 if(e.Item is GridEditableItem && e.Item.IsInEditMode) 
 { 
   RadEditor rade = (e.Item as GridEditableItem)["RadEditorColumn"].Controls[0] as RadEditor; 
   //customize the toolbar of the editor here as you will do that when it is outside of RadGrid  
 } 

Then you can customize its toolbar in the same manner as you will do that when the RadEditor instance resides outside of RadGrid.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
chris
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or