New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The client-side FolderLoaded event is raised when a folder is loaded in the grid of RadFileExplorer.

To handle this event, simply write a JavaScript function that can be called when the event occurs. Then assign the name of this function as the value of the OnClientFolderLoaded property of the control.

The client-side OnClientFolderLoaded event handler receives two arguments:

  1. Sender: The RadFileExplorer object that fired the event.

  2. Event arguments: An event arguments object of type Telerik.Web.UI.FileExplorerEventArgs that exposes the following methods:

    Table 1: OnClientFolderLoaded Event Arguments Object

    Name Parameters Return Type Description
    get_cancel() Boolean Returns a value that indicates whether the event is cancelled.
    get_item() Object Returns a reference to the loaded folder.
    get_path() String Returns the path to the loaded folder.
    set_cancel(value) Boolean Sets whether the event will be cancelled (if true is passed).

Example 1: Handle the RadFileExplorer's client-side FolderLoaded event.

<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"  OnClientFolderLoaded="onClientFolderLoaded">
    <Configuration ViewPaths="~/Images" DeletePaths="~/Images" UploadPaths="~/Images" />
    function onClientFolderLoaded(fileExplorer, args) {
        // Get the loaded folder path    
        alert(" The path to the loaded folder is:  " + args.get_path());

See Also

In this article