Hello,
1. Default there is an indicator showing whether the task is expired. how to close this indicator?
2. how to set Deadline width? the following code didn't work.
<Style TargetType="telerik:DeadlineContainer" BasedOn="{StaticResource DeadlineContainerStyle}">
<Setter Property="Width" Value="15" />
</Style>
Thanks,
Jacky
4 Answers, 1 is accepted

I got the second question's answer:, but it seems limit to 8.
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Grid>
<Rectangle Width="8" Fill="Red" VerticalAlignment="Stretch"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
You can remove the Deadline indicator by setting the Template property in implicit style to Null.
<
Style
TargetType
=
"telerik:DeadlineContainer"
>
<
Setter
Property
=
"Template"
Value
=
"{x:Null}"
/>
</
Style
>
Regards,
Dinko
Progress Telerik

This is not my expectation. let me explain more details:
I want to remove the flag that show the task is expired or not. I still want to keep the deadline bar.
We have already answered your question in your other ticket thread. I am copying the answer also here.
To collapse the OnTimeIndicatorContainer which is displayed when a given Gantt task has a deadline and shows whether the task is on time or delayed. To get rid of this element, you can create an implicit style for it and set its Visibility to Collapsed.
<
Style
TargetType
=
"telerik:OnTimeIndicatorContainer"
>
<
Setter
Property
=
"Visibility"
Value
=
"Collapsed"
/>
</
Style
>
Note that if you're using implicit styles, you should base this style on the OnTimeIndicatorContainerStyle style.
Regards,
Dinko
Progress Telerik