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

How to change the template for "ToolTipPath"

1 Answer 111 Views
DataBar
This is a migrated thread and some comments may be shown as answers.
Navneet
Top achievements
Rank 1
Navneet asked on 22 Jan 2014, 10:10 PM
I want to show multiple values in Tooltippath of each stackbaritem. I also want to change whole look and feel of tooltipPath.
How can I do that. Please suggest.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 24 Jan 2014, 04:14 PM
Hi Navneet,

In order to achieve the desired result you could use the RadToolTipService in the StackedDataBarItems style. The first thing you will need to do  is to remove the ToolTip settings from your StackedDataBar. Then you should set a style for the items with the ToolTip template and value:
<Style TargetType="DataBars:StackedBarItem">
    <Setter Property="telerik:RadToolTipService.IsEnabled" Value="True" />
    <Setter Property="telerik:RadToolTipService.ToolTipContentTemplate" Value="{StaticResource ToolTipTeplate}" />
    <Setter Property="telerik:RadToolTipService.ToolTipContent" Value="{Binding DataItem.ToolTipData}" />
</Style>

For your convenience I attached a project with the described approach.

Regards,
Martin Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DataBar
Asked by
Navneet
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or