CustomDataSourceTransportBuilder
Methods
Update(System.Action)
Configures the URL for Update operation.
Parameters
configurator - System.Action<CustomCrudOperationBuilder>
The configuration object
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Update(update =>
update.Action("Update", "Grid")
);
})
)
Update(System.String,System.String)
Sets controller and action for Update operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Update("Update", "Grid");
})
)
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
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Update("Update", "Grid", new { id = ViewData["id"] });
})
)
Update(System.Object)
Sets the Update operation using anonymous object.
Parameters
settings - System.Object
The update transport settings
Update(System.String)
Sets JavaScript function which to return additional parameters which to be sent the server.
Parameters
handler - System.String
JavaScript function name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Update("updateDS");
})
)
Create(System.Action)
Configures the URL for Create operation.
Parameters
configurator - System.Action<CustomCrudOperationBuilder>
The lambda which configures the Create Action
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Create(create =>
create.Action("Create", "Grid")
);
})
)
Create(System.String,System.String)
Sets controller and action for Create operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Create("Create", "Grid");
})
)
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
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Create("Create", "Grid", new { id = ViewData["id"] });
})
)
Create(System.Object)
Sets the Create operation using anonymous object.
Parameters
settings - System.Object
The create transport settings.
Create(System.String)
Sets JavaScript function which to return additional parameters which to be sent the server.
Parameters
handler - System.String
JavaScript function name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Create("createDS");
})
)
Destroy(System.Action)
Configures the URL for Destroy operation.
Parameters
configurator - System.Action<CustomCrudOperationBuilder>
The destroy transport configurator object
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Destroy(destroy =>
destroy.Action("Destroy", "Grid")
);
})
)
Destroy(System.String,System.String)
Sets controller and action for Destroy operation.
Parameters
actionName - System.String
Action name
controllerName - System.String
Controller Name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Destroy("Destroy", "Grid");
})
)
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
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Destroy("Destroy", "Grid", new { id = ViewData["id"] });
})
)
Destroy(System.Object)
Sets the Destroy operation using anonymous object.
Parameters
settings - System.Object
The destroy transport settings
Destroy(System.String)
Sets JavaScript function which to return additional parameters which to be sent the server.
Parameters
handler - System.String
JavaScript function name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Destroy("destroyDS");
})
)
Submit(System.String)
Sets JavaScript function to handle the submit action.
Parameters
handler - System.String
JavaScript function name
Example
.DataSource(dataSource => dataSource
.Custom()
.Transport(transport =>
{
transport.Submit("submitDS");
})
)
Batch(System.Object)
Sets the Batch operation using anonymous object.
Parameters
settings - System.Object
The batch settings
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);
})
)