New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI FileManager for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the FileManagerEventBuilder class.

C#
public FileManagerEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The FileManager event handlers.

Methods

Defines the handler of the Command client-side event. Fired when server command is executed (copy, move, delete or rename).The event is useful to get feedback when server commands has failed or succeeded and take additional actions based on the status.

C#
public FileManagerEventBuilder Command(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Command(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Command client-side event. Fired when server command is executed (copy, move, delete or rename).The event is useful to get feedback when server commands has failed or succeeded and take additional actions based on the status.

C#
public FileManagerEventBuilder Command(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Command event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Command("onCommand")
)
)

Defines the handler of the DataBinding client-side event. Fired before the widget binds to its data source.

C#
public FileManagerEventBuilder DataBinding(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.DataBinding(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DataBinding client-side event. Fired before the widget binds to its data source.

C#
public FileManagerEventBuilder DataBinding(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBinding event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.DataBinding("onDataBinding")
)
)

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.

C#
public FileManagerEventBuilder DataBound(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.DataBound(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.

C#
public FileManagerEventBuilder DataBound(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBound event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.DataBound("onDataBound")
)
)

Defines the handler of the Drop client-side event. Fired when a file is dragged and dropped over a folder.

C#
public FileManagerEventBuilder Drop(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Drop(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Drop client-side event. Fired when a file is dragged and dropped over a folder.

C#
public FileManagerEventBuilder Drop(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Drop event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Drop("onDrop")
)
)

Defines the handler of the Error client-side event. Fired when a error in the DataSource happen.

C#
public FileManagerEventBuilder Error(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Error(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Error client-side event. Fired when a error in the DataSource happen.

C#
public FileManagerEventBuilder Error(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Error event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Error("onError")
)
)

Defines the handler of the Execute client-side event. Fired when a command is executed.

C#
public FileManagerEventBuilder Execute(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Execute(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Execute client-side event. Fired when a command is executed.

C#
public FileManagerEventBuilder Execute(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Execute event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Execute("onExecute")
)
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the FileManager is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public FileManagerEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the FileManager is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public FileManagerEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Defines the handler of the Navigate client-side event. Fired when navigation occurs.

C#
public FileManagerEventBuilder Navigate(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Navigate(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Navigate client-side event. Fired when navigation occurs.

C#
public FileManagerEventBuilder Navigate(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Navigate event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Navigate("onNavigate")
)
)

Defines the handler of the Open client-side event. Fired when a file is opened (with double click).

C#
public FileManagerEventBuilder Open(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Open(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Open client-side event. Fired when a file is opened (with double click).

C#
public FileManagerEventBuilder Open(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Open event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Open("onOpen")
)
)

Defines the handler of the Select client-side event. Fired when selection changes.

C#
public FileManagerEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(e =&gt; e.Select(
@&lt;text&gt;
function(e){
event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Select client-side event. Fired when selection changes.

C#
public FileManagerEventBuilder Select(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Select event.

Returns:

FileManagerEventBuilder

Returns the current instance of FileManagerEventBuilder .

Example:
C#
@(Html.Kendo().FileManager()
.Name("filemanager")
.Events(events =&gt; events
.Select("onSelect")
)
)