Back to Devexpress

GanttTaskMappingInfo.Color Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantttaskmappinginfo-cadba017.md

latest1.8 KB
Original Source

GanttTaskMappingInfo.Color Property

Specifies the name of the data field that contains information on the task’s color.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("Color")]
public string Color { get; set; }
vb
<DefaultValue("Color")>
Public Property Color As String

Property Value

TypeDefaultDescription
String"Color"

A data field name.

|

Remarks

aspx
<dx:ASPxGantt ID="Gantt" runat="server" Width="100%" KeyFieldName="ID" ParentFieldName="ParentID" ...>
    <Mappings>
        <Task Key="ID" ParentKey="ParentID" Title="Subject" Start="StartDate" End="EndDate" Progress="PercentComplete" Color="TaskColor" />
        //...
    </Mappings>
    ...
</dx:ASPxGantt>

Concept

Bind To Data

Online Demos

See Also

ASPxGantt - 'How To' Examples

GanttTaskMappingInfo Class

GanttTaskMappingInfo Members

DevExpress.Web.ASPxGantt Namespace