How to set tooltip on palette symbol in diagram?

How do we set the tooltip for a palette node? Currently it defaults to the id value. I want it to use the shapeText value. The below didn't work for me.

```
    private void CreatePaletteNode(string id, string shapeText, FlowShapes flowShape)
    {
        DiagramNodeAnnotation nodeannotation = new DiagramNodeAnnotation() { Content = shapeText, Id = id };

        DiagramNode diagramNode = new DiagramNode()
        {
            Id = id,
            PreviewSize = new SymbolSizeModel() { Width = 200, Height = 200 },
            Shape = new DiagramShape() { Type = DiagramShapes.Flow, FlowShape = flowShape, TextContent = shapeText }, 
            Annotations = new ObservableCollection() { nodeannotation },
            Tooltip = new NodeTooltip { Content = shapeText }            
        };

        FlowShapeList.Add(diagramNode);
    }
```

2 Replies

AR Aravind Ravi Syncfusion Team May 13, 2020 03:20 PM UTC

Hi Scott, 
 
Currently we don’t have Support to add tooltip for symbols in palette in our diagram control. We have logged “Support to add tooltip for symbols in palette” as a feature. We does not have any immediate plans to start this feature. We will implement this feature in any one of our upcoming releases.    
 
You can track the feature status from the below link 
 
 
Regards,   
Aravind Ravi 



KR Keerthivasan Ramamoorthy Syncfusion Team June 22, 2023 07:39 AM UTC

Hi Scott,


We are happy to inform you that we have successfully implemented the “Provide support to add tooltip for symbols in symbol palette" feature, which has been included in our Essential Studio 2023 Volume 2 Main Release v22.1.34 is rolled out and is available for download under the following link.


Essential Studio 2023 Volume 2 Main Release v22.1.34 is available for download | Announcements Forums | Syncfusion.


Please refer our below UG documentation for more details about the feature,

https://blazor.syncfusion.com/documentation/diagram/symbol-palette#how-to-provide-tooltip-for-symbols-in-symbol-palette


Regards,

Keerthivasan R.


Loader.
Up arrow icon