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

ASPxClientFileManager.SelectedFileOpened Event

Fires on the client side when an end-user opens a file by double-clicking it or pressing the Enter key.

Declaration

SelectedFileOpened: ASPxClientEvent<ASPxClientFileManagerFileOpenedEventHandler<ASPxClientFileManager>>

Event Data

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

Property Description
file Gets a file related to the event.
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side.

Remarks

Write a SelectedFileOpened event handler to perform specific actions on the client side each time an end-user is going to open a file using any of the following methods:

  • double-clicking a file;
  • pressing the Enter key when a file is selected.

You can use the event parameter's property ASPxClientFileManagerFileEventArgs.file to identify the opened file.

If the processOnServer property is set to false, the SelectedFileOpened event is completely handled on the client side, using the assigned JScript handler without a postback to the server.

Setting the processOnServer property to true indicates that the final processing of the event should be performed on the server side, and so a round trip to the server is required. During such a round trip, the corresponding server-side ASPxFileManager.SelectedFileOpened event is fired, which when handled, allows any desired server-side action to be performed.

See Also