Skip to main content
All docs
V23.2

ASPxClientGanttScaleCellPreparedEventArgs Class

Contains data for the ScaleCellPrepared event.

Declaration

declare class ASPxClientGanttScaleCellPreparedEventArgs extends ASPxClientEventArgs

Remarks

The code sample below illustrates how to color separators and the scale’s top and bottom cells in different colors:

ASPxGantt - Scale Customization

<dx:ASPxGantt runat="server" ID="Gantt" ClientInstanceName="clientGantt" >
    <SettingsTaskList>
        <Columns>
           <!-- ... -->
        </Columns>
    </SettingsTaskList>
    <ClientSideEvents 
        ScaleCellPrepared = "onGanttScaleCellPrepared"
    />
</dx:ASPxGantt>
function onGanttScaleCellPrepared(s, e) {
    var scaleElement = e.scaleElement;
    if (e.scaleIndex === 0)
        scaleElement.style.backgroundColor = "Silver";
    else 
        scaleElement.style.backgroundColor = "LightSteelBlue";
    var border = e.separatorElement;
    border.style.borderColor = "SteelBlue";
}

Inheritance

ASPxClientEventArgs
ASPxClientGanttScaleCellPreparedEventArgs
See Also