FileManagerClientEvents.Creating Property
Definition
- Namespace
- GleamTech.FileUltimate.AspNet.UI
- Assembly
- GleamTech.FileUltimate.dll
Gets or sets the client-side event raised before user creates 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".
public string Creating { get; set; }
Property Value
Examples
Example function:
function fileManagerCreating(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": "creating",
"itemName": "New folder",
"itemType": "Folder",
"targetFolder": {
"name": "Folder Two",
"fullPath": "[1. Root Folder]:\\Folder Two",
"itemType": "Folder"
}
}
*/