This is a migrated thread and some comments may be shown as answers.

How to close GanttTask Deadline indicator

4 Answers 126 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 27 Nov 2017, 11:18 PM

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

Sort by
0
Jacky
Top achievements
Rank 1
answered on 28 Nov 2017, 08:59 PM

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>

0
Dinko | Tech Support Engineer
Telerik team
answered on 30 Nov 2017, 06:01 PM
Hi Jacky,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
0
Jacky
Top achievements
Rank 1
answered on 30 Nov 2017, 06:17 PM

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.

0
Dinko | Tech Support Engineer
Telerik team
answered on 04 Dec 2017, 01:44 PM
Hello Jacky,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GanttView
Asked by
Jacky
Top achievements
Rank 1
Answers by
Jacky
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or