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
2009-10-06 20:00:02
+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
2009-10-07 12:45:27
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
2010-07-27 15:41:31