tags:

views:

1066

answers:

3

How do we hide Ajax Control Tool Kits Bottom Tool bar where it has Design mode HTML mode and preview Buttons.?

+1  A: 

There's probably other ways to do it via code, but I'm lazy and just added the following CSS:

.ajax__htmleditor_editor_bottomtoolbar {
    display:none;
}
ISO30
+1  A: 
using System;

using System.Web;
using AjaxControlToolkit.HTMLEditor;

namespace MyCustomControls
{
public class MyCustomEditor: Editor
{
    protected override void FillBottomToolbar()
    {   
        //Do not add any buttons in the bottom toolbar
        //BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
    }
}

}

Subbarao
A: 

AjaxControlToolkit.HTMLEditor.Toolbar test = (AjaxControlToolkit.HTMLEditor.Toolbar)Editor1.Controls[0].Controls[2].Controls[0].Controls[0];

test.Buttons.ToList().ForEach(delegate(AjaxControlToolkit.HTMLEditor.ToolbarButton.CommonButton x) { x.Enabled = false; });

Roger