Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1370
Applying a Style and modify backcolor of timeline are not compatible ?
posted

Hi (again)

I applied a Style on all my infragistics components, but my code to change color of percentcompletbar in TimeLine part of Gantt is no more applied. 

After loaded Data, I run through tasks to verify PercentComplete value. If a value is over 100, I want to paint bar in red. 

foreach (Task userEnv in task.Tasks)
    if (userEnv.PercentComplete > 100)
        userEnv.TimelineSettings.BarSettings.PercentCompleteBarAppearance.BackColor2 = Color.Red;

But since I m applying style in the Gantt, this line doesn't do anything. 

How to overload Style ?