Back to Devexpress

ASPxClientGanttScaleCellPreparedEventArgs Class

aspnet-js-aspxclientganttscalecellpreparedeventargs.md

latest1.4 KB
Original Source

ASPxClientGanttScaleCellPreparedEventArgs Class

Contains data for the ScaleCellPrepared event.

Declaration

ts
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:

aspx
<dx:ASPxGantt runat="server" ID="Gantt" ClientInstanceName="clientGantt" >
    <SettingsTaskList>
        <Columns>
           <!-- ... -->
        </Columns>
    </SettingsTaskList>
    <ClientSideEvents 
        ScaleCellPrepared = "onGanttScaleCellPrepared"
    />
</dx:ASPxGantt>
js
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

ASPxClientGanttScaleCellPreparedEventArgs Members