BootstrapComboBoxBuilderBase<T>.OnCustomJSProperties(Action<IBootstrapComboBox, 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<IBootstrapComboBox, ICustomJSPropertiesEventArgs> action
)
Public Function OnCustomJSProperties(
    action As Action(Of IBootstrapComboBox, ICustomJSPropertiesEventArgs)
) As T

Parameters

Type Name Description
Action<IBootstrapComboBox, ICustomJSPropertiesEventArgs> action

A ICustomJSPropertiesEventArgs object allowing you to implement custom processing.

Returns

Type Description
T

A reference to this instance after the operation is completed.

Remarks

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