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

Tooltip for 'Recurring task on single row'

1 Answer 122 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
asked on 02 Aug 2017, 01:18 PM

When Mouse is on a recurring, it show tooltip.

However when case 'Recurring task on single row', it doesn't show tooltip.

How can I make it to show tooltip when 'Recurring task on single row'?

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 07 Aug 2017, 07:37 AM
Hi 송,

In order to have a tooltip in this example you should add one in the TimeLineRecurenceContainer control template. In this specific example we did not add a tooltip for this container.
You can achieve this by adding this tooltip under the VisualStateManager.VisualStateGroups. For example:

<telerik:ToolTipManager.ToolTip>
    <ToolTip Content="{Binding}">
        <ToolTip.ContentTemplate>
            <DataTemplate>
                <Grid Margin="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*" MinWidth="130"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="{Binding Title}" Grid.ColumnSpan="2" Margin="0" TextWrapping="NoWrap" TextTrimming="None"/>
                    <TextBlock telerik:LocalizationManager.ResourceKey="Start" Grid.Row="1" Margin="0 0 3 0"/>
                    <TextBlock Text="{Binding Start, Converter={StaticResource DateTimeToCurrentUICultureStringConverter}}" Grid.Row="1" Grid.Column="1" TextWrapping="NoWrap" TextTrimming="None"/>
                    <TextBlock telerik:LocalizationManager.ResourceKey="End" Grid.Row="2" Margin="0 0 3 0"/>
                    <TextBlock Text="{Binding End, Converter={StaticResource DateTimeToCurrentUICultureStringConverter}}" Grid.Row="2" Grid.Column="1" TextWrapping="NoWrap" TextTrimming="None"/>
                </Grid>
            </DataTemplate>
        </ToolTip.ContentTemplate>
    </ToolTip>
</telerik:ToolTipManager.ToolTip>

Hope this helps.

Regards,
Polya
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.
Tags
GanttView
Asked by
Top achievements
Rank 1
Answers by
Polya
Telerik team
Share this question
or