Skip to main content

FileManagerBuilder.OnContextMenuItemClick(RazorBlock) Method

Mirrors the client-side onContextMenuItemClick option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll


public FileManagerBuilder OnContextMenuItemClick(
    RazorBlock jsFunc


Name Type Description
jsFunc RazorBlock

The Razor @<text> block that contains JavaScript function code.


Type Description

A reference to this instance after the method is called.


Use this method to specify a JavaScript handler for the client-side contextMenuItemClick event. This handler can be an inline function or an external function’s reference. Function arguments are described in the client API reference.

Run Demo: File Manager - Toolbar and Context Menu


    function myFileManager_onContextMenuItemClick(e) {
        // Handler code

Refer to Handle Events and Define Callbacks for more information.

See Also