Incorrect validation tooltip placement in datagrid
Hello!
I'm using the DataGrid control with column validation.
When adding the first two rows to an empty datagrid everything works as expected (1. pic) but from the third row and onward the validation tooltip is displayed incorrectly on top of the edited row (2. pic). I tried it in multiple project it always displayed that way.
What can I do to fix this?
Here is the code for the column (every column validation displayed this way not just this column) :
<GridColumn Field=@nameof(TestViewModel.TimeMinutes)
HeaderText="Time"
ValidationRules="@(new ValidationRules{ Required = false, Min = 1, Max = 59999 })"
Width="150">
<Template Context="timeContext">
@{
var data = timeContext as TestViewModel;
<div>@data.TimeMinutesH.ToString("##0"):@data.TimeMinutesM.ToString("00")</div>
}
</Template>
<EditTemplate Context="timeContext">
@{
var data = timeContext as TestViewModel;
<div>
<SfNumericTextBox @bind-Value="data.TimeMinutesH"
TValue="int"
Decimals="0"
Width="40%"
ShowClearButton="true"
ShowSpinButton="false"
Placeholder="Hours"
FloatLabelType="Syncfusion.Blazor.Inputs.FloatLabelType.Always"
Min="0"
Max="999"
Step="1">
</SfNumericTextBox>
:
<SfNumericTextBox @bind-Value="data.TimeMinutesM"
TValue="int"
Decimals="0"
Width="40%"
ShowClearButton="true"
ShowSpinButton="false"
Placeholder="Hours"
FloatLabelType="Syncfusion.Blazor.Inputs.FloatLabelType.Always"
Min="0"
Max="59"
Step="1">
</SfNumericTextBox>
</div>
}
</EditTemplate>
</GridColumn>
Thank you in advance.
Hi A. Yamal,
Based on your query, we would like to clarify that when two records are added,
the tooltip appears below the box because there is space available in the third
row of the grid. However, when a third row is added, there is no space below
the box, so the tooltip appears above it instead. This is the default behavior
of the grid and not an issue. Thank you for your understanding.
Regards,
Prathap Senthil
Thanks for the quick response.
I think my print screen was a bit misleading sorry about that. There is plenty of available space for the tooltip.
Here you can see the tooltip was drawn above the edited cell even though there is space for it under the cell.
Also if I remove the aggregate row from the grid the tooltip placement changes. You can see in the picture that the tooltip is higher than in the picture in my last post.
Sometimes the a tooltip can block the underlying input field like this:
Hi
A. Yamal,
Greetings from Syncfusion,
We are unable to reproduce the reported issue when testing in latest version 29.2.5. When there is enough space, tooltip is displayed in bottom position, otherwise tooltip will be displayed above. For your reference, we have shared a simple sample. To proceed with investigating the reported problem, we would need some additional clarification from your end. Please share the below details to proceed further at our end.
· To analyze the reported issue, could you please share a simple and reproducible sample that demonstrates the problem? This will assist us in identifying the issue more efficiently and providing a resolution
· Kindly share your attempt to replicate the issue using the attached simple sample
· Share a video demonstration of the issue with a detailed explanation. This will greatly assist us in understanding the problem
Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible. Thanks for your understanding.
Regards,
Guhanathan
Attachment: Screenshot_20250522_130433_4f07d994.png
Hi!
I attached a sample code where on the 3rd row and onward the tooltip is displayed above and slightly on top the active cell.
Attachment: GridTest_401ed8d9.zip
Hi A.Yamal,
Based on your query and the shared sample, we would like to inform you that when the Grid height is not explicitly set, the Grid automatically adjusts its height based on the content. In this case, for the last row, there will be no extra white space below it, and as a result, the tooltip will appear above the row by default. This is the expected behavior, as the tooltip requires space to render below, and when there is none, it is repositioned above.
Height="600px"). When there are fewer records, this creates extra white space below the last row, allowing the tooltip to appear below as expected. However, as more rows are added and the row count increases, the white space is consumed. Once there is no space left below the last row, the tooltip will automatically appear above the row to ensure it remains visible within the viewport. This is the designed and default behavior of the Grid tooltip positioning.Regards,
Attachment: GridTest_401ed8d9_(2)_c190eeb9.zip
Hi!
In the same project that I attached earlier if I set the grid height property to 500px the following happens:
Also I would prefer not to explicitly set the grid height, in my use case auto height would be more desirable but again it looks like something is wrong with the component itself.
Greetings from Syncfusion,
- Share a video demonstration of the issue with a detailed explanation. This will greatly assist us in understanding the problem
- Please verify the name and version of the browser in which the issue occurs.
- Determine whether the issue is consistent across different browsers or specific to a particular one.
Attachment: Video_Sample_5e3ab887.zip
- 7 Replies
- 3 Participants
-
AY A. Yamal
- May 19, 2025 09:58 PM UTC
- May 28, 2025 03:39 PM UTC