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

Using custom tooltip in linear scale

8 Answers 69 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Claudio Mesyngier
Top achievements
Rank 1
Claudio Mesyngier asked on 03 Mar 2010, 03:03 PM
I am creating a control that uses the linear scale along other framework elements. When I create a tooltip at the control level (on the panel containing all the elements) I get the tooltip to appear on the other elements but not on the linear scale. I can get the formatted tooltips for ticks and markers. Even when I don't use the formatted tooltip I cannot get the control's tooltip so I wonder if there is any interference with between the container's tooltip and the scale's tootlip? The following is an example:

<UserControl x:Class="RadControlsSilverlightApplication1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikControl="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gauge"
    xmlns:telerikGauge="clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <StackPanel x:Name="LayoutRoot">
        <ToolTipService.ToolTip>
            <TextBlock Text="Tooltip"/>
        </ToolTipService.ToolTip>
        <telerikGauge:LinearScale Width="100" Height="100"/>
        <TextBox Text="Test" Width="100" Height="100"/>
    </StackPanel>
</UserControl>

Thanks,
Claudio

8 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 09 Mar 2010, 10:08 AM
Hello Claudio,

The RadGauge can automatically create tooltips for scales and scale objects (like tick marks, labels and indicators). Because of this functionality the standard tooltips will not work on the scale objects.
As workaround you can add another framework element with almost transparent background over the linear scale.
Please see the sample code below.
Note that in this case the tooltips for scale objects will not work.
<StackPanel x:Name="LayoutRoot">
    <ToolTipService.ToolTip>
        <TextBlock Text="Tooltip"/>
    </ToolTipService.ToolTip>
    <Grid>
        <telerikGauge:LinearScale Width="100" Height="100" />
        <Grid Background="#01ffffff" />
    </Grid>
    <TextBox Text="Test" Width="100" Height="100"/>
</StackPanel>

Regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Claudio Mesyngier
Top achievements
Rank 1
answered on 09 Mar 2010, 04:37 PM
Thanks Andrey!
0
Tim
Top achievements
Rank 1
answered on 28 Mar 2010, 07:15 PM
It would be nice if we could use custom Tooltips like on the Chart control (where you can display the next Drill-Down value of the Chart).  This would be nice on the Gauge because you might want to show more detail or something more "flashy".
0
Andrey
Telerik team
answered on 31 Mar 2010, 09:00 AM
Hello Tim,

The gauge control exposes the TooltipFormat property for the scale elements. It allows you to show tooltip with a value that is assigned to the element.
See more details in the Gauge/Customization/Tooltips example.
http://demos.telerik.com/silverlight/#Gauge/Customization/Tooltips

Regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Tim
Top achievements
Rank 1
answered on 01 Apr 2010, 05:44 AM
I completely understand that custom "formats" are available.  What I was suggesting is that you allow us to override the whole entire "Content" property of the tooltip just like is possible on the Charts where I can display custom Content when the user hovers over a Bar element for example.

Take a look at the Drill Down Chart demo and you'll see what I mean when you hover your mouse over a Bar element...

http://demos.telerik.com/silverlight/#Chart/DrillDown


0
Andrey
Telerik team
answered on 01 Apr 2010, 03:10 PM
Hello Tim,

Thank you for the suggestion.
We will implement this feature in one of the future version of the control.  I have created a PITS issue #1643. You can check when this feature will be available.

Sincerely,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Alexey Oyun
Top achievements
Rank 1
answered on 18 May 2010, 09:45 AM
Hi,
Tried to find this issue by ID. With no result.
Current implementation of PITS does not provide search by ID.
We have to select version, but from ID I can't figure out which version in belongs to. And trying to search issue in each version by ID is very irritating.
And I don't get message if search has 0 results, just empty list. And it makes me wonder if search is still going or I got NO RESULT.
So please provide direct link to issue, while searching is not improved.

Thank you.
0
Ves
Telerik team
answered on 20 May 2010, 12:33 PM
Hi Alexey,

Please, accept our apologies for omitting this -- a direct link to an issue in our PITS would look like this:
http://www.telerik.com/support/pits.aspx#/public/silverlight/xxxx , where 'xxxx' is the issue ID. In this case the link would look like this:

http://www.telerik.com/support/pits.aspx#/public/silverlight/1643

Best regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Gauge
Asked by
Claudio Mesyngier
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Claudio Mesyngier
Top achievements
Rank 1
Tim
Top achievements
Rank 1
Alexey Oyun
Top achievements
Rank 1
Ves
Telerik team
Share this question
or