Skip to main content

BootstrapGridViewBuilderBase<T>.OnCustomJSProperties(Action<IBootstrapGridView, ICustomJSPropertiesEventArgs>) Method

Enables you to supply any server data that can then be parsed on the client.

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public T OnCustomJSProperties(
    Action<IBootstrapGridView, ICustomJSPropertiesEventArgs> action
)

Parameters

Name Type Description
action Action<IBootstrapGridView, ICustomJSPropertiesEventArgs>

A ICustomJSPropertiesEventArgs object allowing you to implement custom processing.

Returns

Type Description
T

A reference to this instance after the operation is completed.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

In some instances, it is necessary to obtain server information on the client. The OnCustomJSProperties method enables you to declare temporary client properties. Once declared, a property can be accessed on the client.

To add new properties, use the ICustomJSPropertiesEventArgs.Properties property, which represents a collection of property names and their values. The only requirement is that property names must begin with the ‘cp’ prefix, to avoid rewriting the base properties exposed by the editor.

See Also