ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Server side

Obout.Ajax.UI.HTMLEditor.ToolbarButton.OpenPopupButton abstract class

 Inheritance Hierarchy

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.ToolbarButton" TagPrefix="obout" %>

Base class for method buttons that are shown in design mode and open popups .

Public properties

Name Description
propertyActiveModes Collection<ActiveModeType> sealed overridden. Gets the collection of edit modes when this button is visible in toolbar. (Inherited from CommonButton.)

Here the collection always contains one item:
propertyClientID String. Gets the server control identifier generated by ASP.NET. (Inherited from Control.)
propertyCssClass String overridable. Gets the CSS class for the button. (Inherited from WebControl.)
Default "ajax__htmleditor_toolbar_button".
propertyDefaultToolTip String overridable. Gets the default tooltip when not found in Localization file. (Inherited from CommonButton.)
Default String.Empty .
propertyID String. Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.)
propertyRelatedPopup Popups.Popup overridable. Gets or sets(protected) the associated popup.
propertyRelatedPopupType String. Gets or sets the Assembly-qualified name of the associated popup's type.
Default String.Empty .

See online example.

Protected properties

Name Description
propertyButtonImagesFolder String overridable. Gets the buttons images folder. If empty then the embedded images are in use. (Inherited from ImageButton.)
Default String.Empty .
propertyBaseImageExtension String overridable. Gets the base image extension for the button. (Inherited from ImageButton.)
Default "gif".
propertyBaseImageName String overridable. Gets the base image name for the button. (Inherited from ImageButton.)

Example:
The following images must exist in case of the base image name "ed_date":
ed_date_n.gif - normal button's image;
ed_date_a.gif - image when the button is pressed or active.
propertyClientControlType String overridable. Gets the script type to use for the Control. (Inherited from CommonButton.)
propertyIsStatus Bool overridable. Gets a value indicating whether the button's state is checked on every parent toolbar update. (Inherited from CommonButton.)
Default false.
propertyScriptPath String overridable. Gets the path of the script file where the associated script type is defined. (Inherited from CommonButton.)

Example of custom popup button

[ParseChildren(true)]
[PersistChildren(false)]
[RequiredScript(typeof(OpenPopupButton))]
[ButtonsList(true)]
public class InsertIcon : OpenPopupButton
{
  public override Popups.Popup RelatedPopup
  {
     get
     {
        if (base.RelatedPopup == null)
        {
           base.RelatedPopup = new CustomPopups.InsertIconPopup();
        }
        return base.RelatedPopup;
     }
  }

  protected override string ButtonImagesFolder
  {
     get { return "~/App_Obout/HTMLEditor/customButtons/"; }
  }

  public override string DefaultToolTip
  {
     get { return "Insert predefined icon"; }
  }

  protected override string BaseImageName
  {
     get { return "ed_insertIcon"; }
  }
}

"Thank you again for your continued support."

Marvin Haiman
The Metropolitan Police Department

Random testimonial   All testimonials