Tooltip of diagram

2 posts, 0 answers
  1. Yostec
    Yostec avatar
    19 posts
    Member since:
    Aug 2012

    Posted 16 Aug 2012 Link to this post

    Is  there   tooltip  of  diagram???

    When the mouse on the "Shape" ,    prompting.      Can  diagram  do  it???      
  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 17 Aug 2012 Link to this post

    Hello Yostec,

     There is no "out of the box" way tooltip on the RadDiagramShape. However, you can use MouseOver and MouseLeave events like so:

    private ToolTip shapestoolTip;
            public MainPage()
            private void RadDiagramShape_MouseEnter(object sender, MouseEventArgs e)
                shapestoolTip = new ToolTip();
                shapestoolTip.Content = "CustomTooltip";
                shapestoolTip.IsOpen = true;
            private void RadDiagramShape_MouseLeave(object sender, MouseEventArgs e)
                if (shapestoolTip != null && shapestoolTip.IsOpen == true)
                    shapestoolTip.IsOpen = false;
    Furthermore. you can take a look at our MindMap and OrgChart Samples where custom MouseOver state is added to the MindMapShapes and OrgChartShapes (they inherit from RadDiagramShapeBase). On mouse over you can see some template parts are showing. Hope this might be helpful in some custom scenarios.

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top