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

Tooltip not showing up

6 Answers 106 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Saravanan Thiruchabai
Top achievements
Rank 1
Saravanan Thiruchabai asked on 19 Mar 2010, 09:51 PM
Hi,
  
    I have a lineseries chart. When I set the ScrollMode as ScrollAndZoom (ScrollMode = ScrollMode.ScrollAndZoom) I dont see the tooltip showing up. When I set the ScrollMode as None. Then i see the tooltip. Wont the tooltip work when the chart is zoomable?

Thanks
Saran

6 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 22 Mar 2010, 12:05 PM
Hi Saravanan,

Indeed the current official version of the control did not support interactivity features (tooltips, click event) when zooming & scrolling was enabled. Our developers were able to address this limitation and you can download the latest internal build from your Client.Net account that supports interactivity in zooming & scrolling scenarios.

Hope this helps.


Regards,
Freddie
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
Saravanan Thiruchabai
Top achievements
Rank 1
answered on 22 Mar 2010, 03:51 PM
Hi Freddie

  What is the internal build version?

Thanks
Saravanan
0
Giuseppe
Telerik team
answered on 23 Mar 2010, 09:38 AM
Hi Saravanan,

The version of the internal build should be 2010.1.319.

Hope this helps.


Greetings,
Freddie
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
Steve
Top achievements
Rank 1
answered on 29 Jun 2010, 08:08 PM
mousedown events seem ok, but mouseup events are not happening for chart with a custom point mark style in version #2010.1.603.1040
0
Steve
Top achievements
Rank 1
answered on 29 Jun 2010, 08:11 PM
oops, mouseup not working with custompointmark style and ScrollAndZoom
0
Giuseppe
Telerik team
answered on 02 Jul 2010, 12:16 PM
Hello Steve,

You can achieve the desired functionality by capturing the mouse in the MouseDown event, and then releasing it in the MouseUp event like this:

XAML
<UserControl.Resources>
    <Style x:Key="CustomPointMarkStyle" TargetType="telerik:PointMark">
        <Setter Property="Size" Value="10" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:PointMark">
                    <Canvas>
                        <Path x:Name="PART_PointMarkPath"
                                MouseLeftButtonDown="PART_PointMarkPath_MouseLeftButtonDown"
                                MouseLeftButtonUp="PART_PointMarkPath_MouseLeftButtonUp"
                                Canvas.Left="{TemplateBinding PointMarkCanvasLeft}"
                                Canvas.Top="{TemplateBinding PointMarkCanvasTop}"
                                Style="{TemplateBinding ShapeStyle}"
                                Width="{TemplateBinding Size}"
                                Height="{TemplateBinding Size}"
                                Stretch="Fill">
                            <Path.Data>
                                <PathGeometry x:Name="PART_PointMarkPathGeometry" />
                            </Path.Data>
                        </Path>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</UserControl.Resources>
 
<Grid x:Name="LayoutRoot" Background="White">
    <telerik:RadChart x:Name="RadChart1" />
</Grid>

C#
public SilverlightControl1()
{
    InitializeComponent();
 
    List<ChartData> data = new List<ChartData>();
    //...
 
    RadChart1.DefaultSeriesDefinition = new LineSeriesDefinition() { PointMarkItemStyle = this.Resources["CustomPointMarkStyle"] as Style };
 
    RadChart1.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollAndZoom;
    RadChart1.DefaultView.ChartArea.ZoomScrollSettingsY.ScrollMode = ScrollMode.ScrollAndZoom;
    RadChart1.ItemsSource = data;
}
 
private void PART_PointMarkPath_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
    (sender as UIElement).CaptureMouse();
}
 
private void PART_PointMarkPath_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
    (sender as UIElement).ReleaseMouseCapture();
}

Hope this helps.


All the best,
Freddie
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
Chart
Asked by
Saravanan Thiruchabai
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Saravanan Thiruchabai
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Share this question
or