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

Numeric Gauge - how to show dynamic values as tooltip in this control

1 Answer 57 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Shanmugam
Top achievements
Rank 1
Shanmugam asked on 14 Dec 2010, 12:11 PM
Please let me know, how to show dynamic values (i.e. #DATAITEM values) as a tooltip in this numeric gauge control.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 16 Dec 2010, 03:20 PM
Hi Shanmugam,

I think you can use standard ToolTipService.ToolTip property for the numeric gauge.
But you should set the data item to the DataContext property of numeric indicator to bind its properties.
The sample XAML code is below.
<telerik:NumericIndicator x:Name="numericIndicator">
    <telerik:NumberPosition CornerRadius="0" />
    <telerik:NumberPosition CornerRadius="0" />
    <telerik:NumberPosition CornerRadius="0"  RelativeWidth="0.5" />
    <telerik:NumberPosition CornerRadius="0" />
    <telerik:NumberPosition CornerRadius="0" />
    <ToolTipService.ToolTip>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="{Binding TotalNoOfIterationsforTooltip, StringFormat='Number of Iterations : {0}'}" />
            <TextBlock Grid.Row="1" Text="{Binding TotalPostPonedEfforts, StringFormat='Total Postponed Effort : {0} Hours'}" />
        </Grid>
    </ToolTipService.ToolTip>
</telerik:NumericIndicator>

Regards,
Andrey Murzov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Gauge
Asked by
Shanmugam
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or