ASP.NET 3.5 and above only

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

Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager class

 Inheritance Hierarchy

It is a client-side representation of the server-side Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager class.

Base class for all 'Gallery manager' popups in Obout.Ajax.UI.HTMLEditor.Popups namespace.

Note Note
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as relativeUrl, you call the get_relativeUrl or set_relativeUrl methods:
var _relativeUrl = galleryObject.get_relativeUrl();
...
galleryObject.set_relativeUrl(false);

Properties

Name Description
propertyadditionalCss string. Gets comma separated paths of additional CSS files for this popup. (Inherited from Popup.)
propertyattached boolean. Gets a value indicating whether the popup is 'attached' to a button called this popup. (Inherited from Popup.)
Always false.
propertyautoClose boolean. Gets a value indicating whether the popup is closed on click outside it. (Inherited from Popup.)
Always false.
propertyautoDimensions boolean. Gets a value indicating whether the size of the popup is determining automatically. (Inherited from Popup.)
Always true.
propertyavailableExtensions object. Gets an array of file extensions (string) available for uploading.
propertycssPath string. Gets the main style file path. (Inherited from Popup.)
propertydesignPanel object. Gets the DesignPanel object if the popup is used in context of EditPanel and in Design mode, otherwise - null. (Inherited from Popup.)
propertyduplicateFileMessage string. Gets or sets the text for an alert window when the user tries to create a folder with duplicate name.
propertyeditPanel object. Gets the EditPanel object if the popup is used in context of EditPanel, otherwise - null. (Inherited from Popup.)
propertyelement string. Gets the DOM element that the current Control instance is associated with. (Inherited from Sys.UI.Control.)
propertygalleryFolders string. Gets or sets semicolon separated relative URL's of gallery folders.

Example:

<%@ Register Assembly="Obout.Ajax.UI" TagPrefix="obout"
                     
Namespace="Obout.Ajax.UI.HTMLEditor" %>
<%@ Register Assembly="Obout.Ajax.UI" TagPrefix="obout"
                     
Namespace="Obout.Ajax.UI.HTMLEditor.Popups" %>
...
<script type="text/JavaScript">
   // before the Image Browser be opened
   function beforePopupShown(sender, args) {
      // set the Gallery Folders
      sender.set_galleryFolders("~/MyImages/folder_1");
      // set the Managed Folders
      sender.set_managedFolders("~/MyImages/folder_1");
      // set the Gallery Names
      sender.set_galleryNames("Flowers");
   }
</script>
...
<obout:PopupHolder runat="server" ID="popupHolder"
                              
DefaultAddPolicy="Demand">
    <
Demand>
         <obout:ImageBrowser runat="server" UseOboutTree="true"
                                          OnClientBeforeShown="beforePopupShown">
         </obout:ImageBrowser>
    </
Demand>
</obout:PopupHolder>
propertygalleryNames string. Gets or sets semicolon separated gallery names associated with the galleryFolders property.
propertyid string. Gets the identifier for the current Control object. The default is the id value of the associated Sys.UI.DomElement object. (Inherited from Sys.UI.Control.)
propertyinitialContent string. Gets the popup's HTML content. (Inherited from Popup.)
propertyinvalidFileExtensionMessage string. Gets or sets the text for an alert window when the user tries to upload a file with invalid extension.
propertyinvalidFileNameMessage string. Gets or sets the text for an alert window when the user tries to create a folder with invalid name.
propertymanagedFolders string. Gets or sets semicolon separated relative URL's of folders available for managing - new folders creating, uploading and deleting files.
propertypopupHolder object. Gets the associated Popup Holder object. (Inherited from Popup.)
propertyposition object. Gets or sets the coordinates of the popup position. (Inherited from Popup.)
The position object has the following fields:
  • left - left position in pixels;
  • top - top position in pixels.

Example:

var position = popup.get_position();
// move it 100px to right down
popup.set_position({ left: (position.left + 100), top: (position.top + 100) });
propertyrelativeUrl boolean. Gets or sets a value indicating whether to create a ralative URL for selected file (image, document etc.). If false then absolute URL will be generated.

Methods

Name Description
propertycheckFileName(fileName) Checks whether the fileName is a valid file name.
Returns true if the name is valid, otherwise false.
propertygetDocument() Gets the document element of the popup's iframe. (Inherited from Popup.)
propertymoveToCenter() Moves the popup to the center of the visible area of the document. (Inherited from Popup.)

Events

Name Description
propertybeforeHidden Raised before the popup is hidden. (Inherited from Popup.)
Event's argument has type Sys.EventArgs.Empty.
propertybeforeShown Raised before the popup is shown. (Inherited from Popup.)
Event's argument has type Sys.EventArgs.Empty.
propertyhidden Raised after the popup is hidden. (Inherited from Popup.)
Event's argument has type Sys.EventArgs.Empty.
propertyshown Raised after the popup is shown. (Inherited from Popup.)
Event's argument has type Sys.EventArgs.Empty.

"First of all... loved the controls... its wonderful features and ease of use. Most of all, I would like to commend your support group. Even if we're still in evaluation mode, the support team has been great and very response. Keep up the great work!"

James Gagni Jr.
Aon Singapore

Random testimonial   All testimonials