Skip to main content
All docs
V19.1

GanttSettings.HtmlCommandCellPrepared Property

Enables you to change the individual command cells’ settings.

Namespace: DevExpress.Web.Mvc

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

Declaration

public TreeListHtmlCommandCellEventHandler HtmlCommandCellPrepared { get; set; }

Property Value

Type Description
TreeListHtmlCommandCellEventHandler

A delegate method allowing you to implement custom processing.

Remarks

The HtmlCommandCellPrepared event is raised for each cell within command columns when the corresponding table cell has been created. You can handle this event, for example, to change the style settings of individual command cells.

The processed cell is identified by the event parameter’s Cell property. The column and node where the processed cell resides can be obtained via the Column and NodeKey properties.

 settings.HtmlCommandCellPrepared = (sender, e) =>
{
    var gantt = (MVCxGantt)sender;
    if (...) // custom code
        e.Cell.CssClass = "MyClass";
    };
See Also