How to change the template for "ToolTipPath"

2 posts, 0 answers
  1. Navneet
    Navneet avatar
    2 posts
    Member since:
    Nov 2013

    Posted 22 Jan 2014 Link to this post

    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.
  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 24 Jan 2014 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top