Custom toolbar for RadEditor in GridHTMLEditorColumn

2 posts, 0 answers
  1. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 29 Jan 2009 Link to this post

    I'm using GridHTMLEditorColumn in the RadGrid. How do i customize to RadEditor toolbar when it shows up in the RowEdit mode?

    Thank you.
  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 02 Feb 2009 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top