How to close GanttTask Deadline indicator

5 posts, 0 answers
  1. Jacky
    Jacky avatar
    18 posts
    Member since:
    Feb 2017

    Posted 27 Nov 2017 Link to this post

    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

     

  2. Jacky
    Jacky avatar
    18 posts
    Member since:
    Feb 2017

    Posted 28 Nov 2017 in reply to Jacky Link to this post

    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>

  3. Dinko
    Admin
    Dinko avatar
    711 posts

    Posted 30 Nov 2017 Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
  4. Jacky
    Jacky avatar
    18 posts
    Member since:
    Feb 2017

    Posted 30 Nov 2017 in reply to Dinko Link to this post

    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.

  5. Dinko
    Admin
    Dinko avatar
    711 posts

    Posted 04 Dec 2017 Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top