Tooltip not showing up

7 posts, 0 answers
  1. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 19 Mar 2010 Link to this post

    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
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 22 Mar 2010 Link to this post

    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.
  3. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 22 Mar 2010 Link to this post

    Hi Freddie

      What is the internal build version?

    Thanks
    Saravanan
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 23 Mar 2010 Link to this post

    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.
  5. Steve
    Steve avatar
    17 posts
    Member since:
    Jul 2012

    Posted 29 Jun 2010 Link to this post

    mousedown events seem ok, but mouseup events are not happening for chart with a custom point mark style in version #2010.1.603.1040
  6. Steve
    Steve avatar
    17 posts
    Member since:
    Jul 2012

    Posted 29 Jun 2010 Link to this post

    oops, mouseup not working with custompointmark style and ScrollAndZoom
  7. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 02 Jul 2010 Link to this post

    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
Back to Top