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

FileManagerDataSourceBuilder

Methods

Custom()

Use it to configure Custom binding.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource => dataSource
                        .Custom()
                        .Transport(transport => transport
                            .Read("Read", "FileManagerData")
                        )
                    })  
                )

Read(System.Action)

Configures the URL for Read operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                        dataSource.Read(operation => operation
                            .Type(HttpVerbs.Post)
                            .Action("Read", "FileManagerData")
                        );
                    })  
                )

Read(System.String,System.String,System.Object)

Sets controller, action and routeValues for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData", new { id = 1 });
                    })  
                )

Read(System.String,System.String)

Sets controller and action for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData");
                    })  
                )

Create(System.Action)

Configures the URL for Create operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

Configures the Create operation settings.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                        dataSource.Create(operation => operation
                            .Type(HttpVerbs.Post)
                            .Action("Create", "FileManagerData")
                        );
                    })  
                )

Create(System.String,System.String,System.Object)

Sets controller, action and routeValues for Create operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Create("Create", "FileManagerData", new { id = 1 });
                    })  
                )

Create(System.String,System.String)

Sets controller and action for Create operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Create("Create", "FileManagerData");
                    })  
                )

Update(System.Action)

Configures the URL for Update operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

COnfigures the Update operation settings.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                        dataSource.Update(operation => operation
                            .Type(HttpVerbs.Post)
                            .Action("Update", "FileManagerData")
                        );
                    })  
                )

Update(System.String,System.String,System.Object)

Sets controller, action and routeValues for Update operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Update("Update", "FileManagerData", new { id = 1 });
                    })  
                )

Update(System.String,System.String)

Sets controller and action for Update operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Update("Update", "FileManagerData");
                    })  
                )

Destroy(System.Action)

Configures the URL for Destroy operation.

Parameters

configurator - System.Action<CrudOperationBuilder>

Configures the Destroy operation settings.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                        dataSource.Destroy(operation => operation
                            .Type(HttpVerbs.Post)
                            .Action("Destroy", "FileManagerData")
                        );
                    })  
                )

Destroy(System.String,System.String,System.Object)

Sets controller, action and routeValues for Destroy operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Destroy("Destroy", "FileManagerData", new { id = 1 });
                    })  
                )

Destroy(System.String,System.String)

Sets controller and action for Destroy operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Destroy("Destroy", "FileManagerData");
                    })  
                )

Events(System.Action)

Configures the client-side events

Parameters

configurator - System.Action<DataSourceEventBuilder>

Configures the events for the DataSource.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData");
                    })
                    .Events(events => events.RequestStart("onRequestStart"))
                )

Model(System.Action)

Configures the model

Parameters

configurator - System.Action<FileManagerModelDescriptorBuilder>

Configures the Model of the DataSource.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData");
                    })
                    .Model(model => model
                        .Field("name")
                        .DefaultValue("N/A")
                    )
                )

ServerFiltering()

Specifies if filtering should be handled by the server.

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData");
                    })
                    .ServerFiltering()
                )

ServerFiltering(System.Boolean)

Specifies if filtering should be handled by the server.

Parameters

enabled - System.Boolean

Example


                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .DataSource(dataSource =>
                    {
                         dataSource.Read("Read", "FileManagerData");
                    })
                    .ServerFiltering(false)
                )

In this article
Not finding the help you need?