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

CustomDataSourceTransportBuilderBase

Methods

ParameterMap(System.Func)

Sets the parameterMap function.

Parameters

handler - System.Func<Object,Object>

ParameterMap(System.String)

Sets the parameterMap function.

Parameters

handler - System.String

JavaScript function name

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.ParameterMap("parameterMap");
                })
            )

Read(System.Action)

Configures the URL for Read operation.

Parameters

configurator - System.Action<CustomCrudOperationBuilder>

The lambda which configures the Read Action

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.Read(read =>
                       read.Action("Read", "Grid")
                    );
                })
            )

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

Sets controller and action for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

routeValues - System.Object

Route values

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.Read("Read", "Grid", new { id = ViewData["id"] });
                })
            )

Read(System.String,System.String)

Sets controller, action and routeValues for Read operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller Name

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.Read("Read", "Grid");
                })
            )

Read(System.Object)

Sets the Read operation using anonymous object.

Parameters

settings - System.Object

Read(System.String)

Sets the Read operation to JavaScript function or object.

Parameters

handler - System.String

JavaScript function name

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.Read("readDS");
                })
            )

Cache(System.Boolean)

Sets the transport cache.

Parameters

cache - System.Boolean

The boolean value for the Cache

Example


            .DataSource(dataSource => dataSource
                .Custom()
                .Transport(transport =>
                {
                    transport.Cache(false);
                })
            )

In this article
Not finding the help you need?