ASP.NET 3.5 and above only

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

Obout.Ajax.UI.HTMLEditor.Popups.UrlBrowser class

 Inheritance Hierarchy

It is a client-side representation of the server-side Obout.Ajax.UI.HTMLEditor.Popups.UrlBrowser class.
The popup of this class is opened on "Browse" button click in LinkProperties popup.

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. (Inherited from GalleryManager.)
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. (Inherited from GalleryManager.)
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. (Inherited from GalleryManager.)

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("~/MyDocuments/folder_1");
      // set the Managed Folders
      sender.set_managedFolders("~/MyDocuments/folder_1");
      // set the Gallery Names
      sender.set_galleryNames("Public documents");
   }
</script>
...
<obout:PopupHolder runat="server" ID="popupHolder"
                              
DefaultAddPolicy="Demand">
    <
Demand>
         <obout:UrlBrowser runat="server" UseOboutTree="true"
                                     OnClientBeforeShown="beforePopupShown">
         </obout:UrlBrowser>
    </
Demand>
</obout:PopupHolder>
propertygalleryNames string. Gets or sets semicolon separated gallery names associated with the galleryFolders property. (Inherited from GalleryManager.)
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. (Inherited from GalleryManager.)
propertyinvalidFileNameMessage string. Gets or sets the text for an alert window when the user tries to create a folder with invalid name. (Inherited from GalleryManager.)
propertymanagedFolders string. Gets or sets semicolon separated relative URL's of folders available for managing - new folders creating, uploading and deleting files. (Inherited from GalleryManager.)
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. (Inherited from GalleryManager.)

Methods

Name Description
propertycheckFileName(fileName) Checks whether the fileName is a valid file name. (Inherited from GalleryManager.)
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.

"Hey, just wanted to say I love using the new grid... I am working on incorporating it in a ton of places in an application we use."

Wes McClure

Random testimonial   All testimonials