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<IBootstrap |
A ICustom |
#Returns
Type | Description |
---|---|
T | A reference to this instance after the operation is completed. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
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.