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

[Solved] ToolTipTouchDelay on RadCartesianChart

1 Answer 92 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Florian
Top achievements
Rank 2
Florian asked on 21 Jan 2013, 03:18 PM
Hello Support,

i need to modify the touch delay of the tooltips, so they show "onTouch" and dispose after it.
Currently you need touch the datapoint for a second, before the tooltip comes up.

I tried to set the "ShowDelay" to 0 but the touch behavior was the same.

This is my Behavior Code in the Chart:
<telerikChart:RadCartesianChart.Behaviors>
                        <telerik:ChartTooltipBehavior SnapToClosestPoint="True">
                            <telerik:ChartTooltipBehavior.ContentTemplate>
                                <DataTemplate>
                                    <Border BorderBrush="#80D6F4" BorderThickness="1" CornerRadius="12" Background="White">
                                        <StackPanel Background="Transparent">
                                            <TextBlock Text="{Binding DataPoint.Value}" Foreground="#076FA0" Margin="2"/>
                                        </StackPanel>
                                    </Border>
                                </DataTemplate>
                            </telerik:ChartTooltipBehavior.ContentTemplate>
                        </telerik:ChartTooltipBehavior>
                    </telerikChart:RadCartesianChart.Behaviors>

Thanks!


1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 21 Jan 2013, 05:46 PM
Hi Florian,

Thank you for your interest.

Generally ChartTooltipBehavior.ShowDelay property is of type TimeSpan so it is best to set it to zero like this:

ShowDelay="0:0:0"

Note, however, that this would not be enough to achieve the desired instant effect -- the default value is actually only 300 milliseconds and the delay you observe is caused by the fact that currently tooltip is shown on the Tap&Hold gesture (and there is certain delay till this gesture is recognized). Unfortunately the current version of the control does not support customization of the "action" gesture for tooltip / trackball behaviors (i.e. you cannot instruct the control to perform the action on tap and not on tap & hold). We will forward your feature request to our devteam for further consideration. You can also log it in our public ideas & feedback portal here so other customers can vote for it (the higher the demand, the higher the priority).

I hope this helps. Let me know if I can assist you any further.


 Regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Florian
Top achievements
Rank 2
Answers by
Ivaylo Gergov
Telerik team
Share this question
or