Raised right before rendering a ToolbarItem to let the user make last minute changes on it.
The event handler receives an argument of type ToolbarItemRenderEventArgs containing data related to this event. The following ToolbarItemRenderEventArgs property provides information specific to this event.
| Property | Description |
|---|---|
| ToolbarItem | ToolbarItem to modify right before rendering. |
This sample shows how to handle the ToolbarItemRender event.
private void UltimateEditor1_ToolbarItemRender(object sender, Karamasoft.WebControls.UltimateEditor.ToolbarItemRenderEventArgs e)
{
// Hide the Copy ToolbarItem
if (e.ToolbarItem.ID == "Copy")
e.ToolbarItem.Visible = false;
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.UltimateEditor1.ToolbarItemRender += new Karamasoft.WebControls.UltimateEditor.UltimateEditor.ToolbarItemRenderEventHandler(this.UltimateEditor1_ToolbarItemRender);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
UltimateEditor Class | Karamasoft.WebControls.UltimateEditor Namespace