Skip to main content

ASPxClientFileManagerActionEventArgsBase.isFolder Property

Gets a value specifying whether the current processed item is a folder.

Declaration

isFolder: boolean

Property Value

Type Description
boolean

true if the processed item is a folder; false if the processed item is a file.

Example

The code below demonstrates how you can prohibit end-users from deleting any folder.

<dx:ASPxFileManager ID="ASPxFileManager1" runat="server">
      <Settings ThumbnailFolder="~\Thumb" RootFolder="~\" />
      <SettingsEditing AllowDelete="True" />
      <ClientSideEvents ItemDeleting="function(s, e) {
            if (e.isFolder) {
            e.cancel = true;
            }
      }" />
</dx:ASPxFileManager>
See Also