The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientFileManager.SelectedFileChanged Event

Fires on the client side after the selected file has been changed.


SelectedFileChanged: ASPxClientEvent<ASPxClientFileManagerFileEventHandler<ASPxClientFileManager>>

Event Data

The SelectedFileChanged event handler receives an argument of the ASPxClientFileManagerFileEventArgs type. The following properties provide information specific to this event.

Property Description
file Gets a file related to the event.


Write the SelectedFileChanged event handler to perform a specific action each time the selected file is changed.


The code below demonstrates how you can use the client GetFullName method to display the selected file's full name.

<dx:ASPxLabel ID="ASPxLabel1" runat="server" ClientInstanceName="label" Text="Files">

<dx:ASPxFileManager ID="ASPxFileManager1" runat="server" ClientIDMode="AutoID">
    <Settings ThumbnailFolder="~\Thumb" Rootfolder="~\"></Settings>
    <ClientSideEvents SelectedFileChanged="function(s, e) {
            label.SetText(e.file.GetFullName());}" />
See Also