ToolTip does not work correctly on Gauge

Good morning,
I use a ToolTip on a Gauge control created by code:

Dim rg As New Syncfusion.Windows.Forms.Gauge.RadialGauge
rg.GaugeLabel = (HOccupate + HPreventivo + HLibere).ToString
rg.MinimumValue = 0
rg.MaximumValue = HOccupate + HPreventivo + HLibere
rg.Size = New Size(200, 200)
rg.EnableCustomNeedles = True
rg.MinorInnerLinesHeight = 0
rg.MinorTickMarkHeight = 0
HRitardo = HRitardo - (HOccupate + HPreventivo + HLibere)
If HRitardo < 0 Then
    HRitardo = 0
End If
If HRitardo > 0 Then
    rg.BackColor = Color.Red
    Me.ToolTip1.SetToolTip(rg, "occupate: " + HOccupate.ToString + CR + "offerte: " + HPreventivo.ToString + CR + "libere: " + HLibere.ToString + CR + "RITARDO: " + HRitardo.ToString)
Else
    rg.BackColor = Color.Gray
    Me.ToolTipGauge.SetToolTip(rg, "occupate: " + HOccupate.ToString + CR + "offerte: " + HPreventivo.ToString + CR + "libere: " + HLibere.ToString)
End If

To view the ToolTip, I have to click on the Gauge. Should the ToolTip not be displayed when the mouse is over the control? (without clicking).

The same problem also occurs when using SuperToolTip.

My program runs on Windows10.

Kind Regards

Beppe

5 Replies

MK Mallika Kannan Syncfusion Team April 16, 2018 07:05 AM UTC

Hi Beppe 
 
Thank you for contacting Syncfusion support. 
 
We have checked your query “ToolTip not displayed when mouse hover the RadialGauge Control“. We were unable to reproduce the reported issue. We have prepared the sample and video for your reference. It can be downloaded from the below link, 
 
 
 
Kindly check the above solution and let us know whether our understanding on your query is same? If not please provide the video/sample for issue reproducible. This would help us to provide solution at earliest. 
 
Regards 
Mallika 



BS BEPPE SALVADERI April 25, 2018 10:42 AM UTC

Hi Mallika,
sorry but I forgot to say that the Gauge is on a GridControl.
Maybe this is what causes the problem?
I am attaching a screenshot.
Thank you.
Beppe


Attachment: PDP_5c9dc8d2.zip


SN Sindhu Nagarajan Syncfusion Team April 26, 2018 07:23 AM UTC

Hi Beppe, 
 
Thanks for the update. 
 
We can understand your scenarios. By default, GridControl have the direct support to show the tooltip text and to set tooltip for a cell, use CellTipText property for specific cells or specific columns or specific columns. If you want to display tooltip text for grid cells based on conditions, CellTipText property can be used in QueryCellInfo event. please refer to the below code snippet and UG documents, 
 
Code Example 
//Set the ToolTip text for particular cell. 
this.gridControl1[1, 1].CellTipText = "Hello"; 
 
//Adding ToolTip to the specific column 
this.gridControl1.ColStyles[1].CellTipText = "Hello"; 
 
//Adding ToolTip to the specific row 
this.gridControl1.RowStyles[2].CellTipText = "Hello"; 
 
this.gridControl1.QueryCellInfo += gridControl1_QueryCellInfo; 
 
void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) 
{ 
    // Enabling comment tip for particular cell. 
    if (e.RowIndex == 1 && e.ColIndex == 1) 
        e.Style.CellTipText = "Cell comment"; 
 
    // Enabling comment tip for row. 
    if (e.ColIndex > 0 && e.RowIndex == 5) 
        e.Style.CellTipText = "Row comment"; 
 
    // Enabling comment tip for column. 
    if (e.RowIndex > 0 && e.ColIndex == 4) 
        e.Style.CellTipText = "Column comment"; 
} 
 
 
Moreover, please refer the below KB documents for showing SuperToolTip and ToolTip in grid. 
 
KB Link:  
 
Please let us know if you have any other queries. 
 
Regards, 
Sindhu  



BS BEPPE SALVADERI May 2, 2018 10:12 PM UTC

Hi Sindhu, thanks for the reply.
It works!
Best regards.
Beppe


SN Sindhu Nagarajan Syncfusion Team May 3, 2018 04:13 AM UTC

Hi Beppe, 

Thanks for the update.  
We are glad to hear that the provided solution resolved your scenario. Please let us know if you have any other queries. 

Regards, 
Sindhu  


Loader.
Up arrow icon