ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - File Manager - Client side

Obout.Ajax.UI.FileManager.FileManager class

 Inheritance Hierarchy

It is a client-side representation of the server-side Obout.Ajax.UI.FileManager.FileManager class.
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 autoPostBack, you call the get_autoPostBack or set_autoPostBack methods:
var fileManager = $find("<%= FileManager1.ClientID %>");
var _autoPostBack = fileManager.get_autoPostBack();
...
fileManager.set_autoPostBack(true);

Properties

Name Description
propertyautoPostBack boolean. Gets or sets a value indicating whether a postback to the server automatically occurs when file is picked.
Default false.
propertyelement node. Gets the DOM element that the current control object is associated with (hidden input). (Inherited from Sys.UI.Control.)
propertyheight string. Gets or sets the picked file's Height to be posted.
propertyinfo string. Gets or sets the picked file's Info to be posted.
propertypicked boolean. Gets or sets a value indicating whether a file was picked from the File Browser before postback.
propertypopupHolder object. Gets the associated Popup Holder object.
propertypopupHolderID string. Gets the associated Popup Holder object ID.
propertyrelatedPopup object. Gets the related popup object.
It returns an object the with base type Obout.Ajax.UI.HTMLEditor.Popups.GalleryManager or null if the popup is not loaded yet.
propertyrelatedPopupClassName string. Gets the class name of the Gallery Manager that is used.
propertyretainPopupPosition boolean. Gets or sets a value indicating whether to retain Gallery Manager's position before its closing and restore it on the popup reopened.
Default false.
propertytooltip string. Gets or sets the picked file's Tooltip to be posted.
propertyuniqueID string. Gets the unique, hierarchically qualified identifier for the server control.
propertyurl string. Gets or sets the picked file's virtual URL to be posted or the initial virtual URL for browsing.
propertywidth string. Gets or sets the picked file's Width to be posted.

Methods

Name Description
propertyclear() Clear the current file selection.
propertyopenManager() Open the associated 'Gallery Manager' popup.

Example:

$find('<%= fileManager.ClientID %>').openManager();
Note Note
To add or remove handler functions for client API events, you must call methods that are named with the add_ and remove_ prefixes. For example, to add or remove a handler function for an event such as filePicked, you call the add_filePicked or remove_filePicked methods:
function filePickedHandler(sender, args) {
    alert("Picked file's virtual URL: " + sender.get_url());
}
...
var fileManager = $find("<%= FileManager1.ClientID %>");
fileManager.add_filePicked(filePickedHandler);
...
fileManager.remove_filePicked(filePickedHandler);

Events

Name Description
propertyafterClosed Raised after the manager popup is closed.
Event's argument has type Sys.EventArgs.
propertybeforeOpened Raised just before the manager popup be opened.
Event's argument has type Sys.EventArgs.
propertyfilePicked Raised when a file is picked.
Event's argument has type Sys.EventArgs.

"I wanted to say this is probably the best set of tools I have ever worked with, but the fact that you guys answer questions is phenomenal. I recommend your stuff to every developer I talk to. "

Karl Wilkens
Multiweb Communications, Inc.

Random testimonial   All testimonials