FileManagerClientEventsPreviewing Property

Gets or sets the client-side event raised before user previews a file or folder in file manager. The value should be a valid JavaScript function name which is accessible on the host page. Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.2.0
C#
public string Previewing { get; set; }

Property Value

String

Example

Example function:

JavaScript
function fileManagerPreviewing(sender, e) {
    var fileManager = sender;

    //Pretty print the event arguments
    var json = JSON.stringify(e, null, 2);

    alert(json);

    /*
    //Optionally displaying a message to the user when canceling
    e.cancelMessage = e.eventName + " event is canceled!";

    //Canceling a before event (stops the corresponding action):
    return false;
    */
}

//SAMPLE OUTPUT:
/*
{
  "eventName": "previewing",
  "item": {
    "itemType": "File",
    "name": "DOCX Document.docx",
    "fullPath": "[Root Folder 1]:\\DOCX Document.docx",
    "extension": "docx",
    "dateModified": "2011-06-01T07:21:48.000Z",
    "type": "DOCX File",
    "size": 84272
  },
  "previewerType": "DocumentViewer"
}
*/

See Also