Skip to main content
All docs
V24.1

ASPxClientGanttScaleCellPreparedEventArgs.scaleElement Property

Specifies a scale cell.

Declaration

scaleElement: any

Property Value

Type Description
any

The scale cell.

Remarks

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

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";
}
See Also