Click or drag to resize

DataContextRenderViewModelConfigurationTModel(RecordOperationsCache, Object, String, String, String, Object) Method

Renders client-side configuration script for paged view model.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public string RenderViewModelConfiguration<TModel>(
	RecordOperationsCache cache,
	Object viewBag,
	string defaultSortField = null,
	string hubClassName = "GSF.Web.Security.SecurityHub",
	string hubScriptName = "securityHub",
	params Object[] parentKeys
)
where TModel : class, new()
View Source

Parameters

cache  RecordOperationsCache
Data hub record operations cache.
viewBag  Object
ViewBag for the view.
defaultSortField  String  (Optional)
Default sort field name, defaults to first primary key field. Prefix field name with a minus, i.e., '-', to default to descending sort.
hubClassName  String  (Optional)
Full class name of hub instance, defaults to "GSF.Web.Security.SecurityHub".
hubScriptName  String  (Optional)
Javascript hub name, defaults to "securityHub".
parentKeys  Object
Primary keys values of the parent record to load.

Type Parameters

TModel
Modeled database table (or view).

Return Value

String
Rendered paged view model configuration script.
See Also