SfDataGrid With tooltips over nested headers


I have been trying to use custom tool tips for the SfDatagrid, and unfortunately none of the approaches Ive used have worked perfectly. In each of the methods, the tooltips posititioning is quite far off from where it should be positioned when showin on nested sub tables. Or when using the SFToolTip, the positioning is better, but it never hides when the mouse moves. Each of the columns that has a tool tip has ShowHeaderToolTip = true.


Method 1:


grid.ToolTipOpening += grid_ToolTipOpening;
subGrid.ToolTipOpening += grid_ToolTipOpening;


private void Grid_ToolTipOpening(object sender, Syncfusion.WinForms.DataGrid.Events.ToolTipOpeningEventArgs e)
{
var tt = string.Empty;
var grid = (SfDataGrid)sender;


switch (e.Column.MappingName.ToLower())
{
case "mapping1":
tt = "Lorem ipsum dolor sit amet.";
break;
case "mapping2":
tt = "Duis aute irure dolor in reprehenderit.";
break;
default:
break;
}
e.ToolTipInfo.Items[0].Text = tt;
}


Problem: ​The tooltip works fine on the main header row, but for any nested rows, the positioning is WAY off.


Method 2: ​Used the same code, but utilized a SFToolTip with _tooltip.Show(tt);

Problem: ​The positioning was much better, but the tooltip would hang around for a long time even after the mouse moved away.


Method 3: ​Attempted to use the built in winforms tooltip.

Problem: ​The built in tooltip requires a Control type parameter, which was not accessible from the SF header control.


I liked method 1 the best as the tool tip would disappear on mouse move, and it provided the same look and feel as the SFtoolTip. However, would you guys be able to fix the positioning issue? Or let me know how to accomplish what I am trying to do.


8 Replies

TI Tim June 24, 2022 02:08 PM UTC

Here is attached form that demonstrates the issue.


Attachment: Form1_50600ba3.zip



VS Vijayarasan Sivanandham Syncfusion Team June 29, 2022 03:09 PM UTC

Hi Tim,

We deeply regret for the delay and inconvenience caused.


We are still working on this. So, we need two more business days to validate this. We will validate and update you with further details on or before July 01, 2022.


We appreciate your patience until then.

Regards,

Vijayarasan S



TI Tim June 29, 2022 06:38 PM UTC

No worries, if you use the example i provided and look at any of the tooltips in the nested sub grid column headers you will see the issues.



VS Vijayarasan Sivanandham Syncfusion Team June 30, 2022 03:32 PM UTC

Hi Tim,

As we mentioned earlier, we will validate and update you with further details on or before July 01, 2022.


We appreciate your patience until then.


Regards,

Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team July 1, 2022 02:50 PM UTC

Hi Tim,

Sorry for the inconvenience caused.

We are still working on this. We will update you with further details on or before July 6, 2022.

We appreciate your patience and understanding.


Regards,

Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team July 6, 2022 03:47 PM UTC

Hi Tim,

We have created a bug report for the reported issue “ToolTip show with improper location when tooltip enabled in DetailsViewDataGrid”. We will fix this issue and include it in our upcoming Weekly NuGet release scheduled for July 26, 2022.

You can track the status of this report through the following feedback link,

Feedback Link: https://www.syncfusion.com/feedback/36163/tooltip-show-with-improper-location-when-tooltip-enabled-in-detailsviewdatagrid

Note: The provided feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.

Regards,
Vijayarasan S



VS Vijayarasan Sivanandham Syncfusion Team July 26, 2022 01:54 PM UTC

Hi Tim,

We would like to let you know that Essential Studio Weekly NuGet packages (v20.2.0.40) has been published in nuget.org with the fix for the issue “ToolTip show with improper location when tooltip enabled in DetailsViewDataGrid”. Please let us know if you have any concerns in this.

Regards,
Vijayarasan S


Loader.
Up arrow icon