HtmlEditorSettings.CustomJSProperties Property

Enables you to get server-side data on the client.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll


public CustomJSPropertiesEventHandler CustomJSProperties { get; set; }

Property Value

Type Description

A delegate method that allows you to process server-side data.


The CustomJSProperties property enables you to declare temporary client properties, which you can access on the client.

Use the CustomJSPropertiesEventArgs.Properties property to add temporary client properties. The property names should begin with the ‘cp’ prefix.

Html.DevExpress().HtmlEditor(settings => {
    settings.Name = "htmlEditor";
    // ...
    settings.CustomJSProperties = (s, e) => {
        var editor = s as MVCxHtmlEditor;
        e.Properties["cpToolbarMode"] = editor.ToolbarMode;


How to Access Server Data on the Client Side

See Also