ASPxClientGanttScaleCellPreparedEventArgs.scaleIndex Property
The scale’s index.
Declaration
scaleIndex: number
Property Value
Type | Description |
---|---|
number | The index. |
Remarks
The code sample below illustrates how to color separators and the scale’s top and bottom cells:
<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