ToolTips

Hello,
this is my tooltips code:

 var tooltip = new MapsTooltipSettings
    {
        Visible = true,
        ValuePath="City"
    };

I want view more data in tooltips:
 var tooltip = new MapsTooltipSettings
    {
        Visible = true,
        ValuePath="City"+"IP"
    };

It's possible ?

1 Reply

MT Manikandan Thangapandian Syncfusion Team April 1, 2020 01:08 PM UTC

Hi Luigi, 
 
Thank you for contacting Syncfusion support. 
 
You cannot refer more than one value for valuePath property of Maps. If you want to use more than one value of data source for the tooltip, you can use format or template property. 
 
For example, in your case you can use format property like this. 
 
Code snippet: 
 
var tooltip = new MapsTooltipSettings 
    { 
        Visible = true, 
        ValuePath="City", 
        Format="${City} : ${IP}" 
    }; 
 
 
For the tooltip template, please refer the below code snippet. 
 
Code snippet: 
 
var tooltip = new MapsTooltipSettings 
    { 
        Visible = true, 
        ValuePath="City", 
        Template="<div> ${City} : ${IP}</div>" 
    }; 
 
 
You can refer all the data source properties in tooltip using template and format properties. 
 
We have created a sample to demonstrate this. Please find the below link for your reference. 
 
 
Please let us know if you need any further assistance. 
 
Regards,  
Manikandan T

Loader.
Up arrow icon