Aurigma Image Uploader 6.0 Dual
ImageUploader.UploadPaneSortMode Property
See Also Supported in: ActiveX Java

Sort mode of the upload list.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("UploadPaneSortMode", "Unsorted");
    //...other params...
    iu.writeHtml();
    </script>

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setUploadPaneSortMode(value);
    value = getImageUploader("ImageUploaderID").getUploadPaneSortMode();

##### Property Value

A member of this enumeration that specifies a sort mode of the upload pane:

String value | Integer value | Description
--- | --- | ---
Unsorted | 0 | Items are unsorted.
Name | 1 | Items are sorted by name alphabetically.
Size | 2 | Items are sorted by file size.
Type | 3 | Items are sorted by file type alphabetically.
Modified | 4 | Items are sorted by the date of last modification.
Path | 5 | Items are sorted by full path.

Note
If you set the same value twice, the sort order will toggle between ascending and descending and vice versa.

If unsupported string value is passed, it is interpreted as `Unsorted`.

Sort mode is automatically reset to `Unsorted` when new items are added or re-arranged via drag-n-drop.

Note
When you get this property value through the JavaScript, integer value will be returned (even if you initialize the property with a string value).

Default value is "Unsorted".

# See Also

##### Examples

Layouts

##### Reference

FolderPaneSortMode Property
SortModeChange Event
UploadPaneAllowRotate Property
UploadPaneBackgroundColor Property
UploadPaneBorderStyle Property
UploadPaneShowDescriptions Property
UploadView Property
ParentControlName Property