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.


1.png

2.png

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.


7 Replies

PS Prathap Senthil Syncfusion Team May 20, 2025 11:53 AM UTC


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



AY A. Yamal May 20, 2025 04:32 PM UTC

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.

3.png

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:

SyncGrid3.png



GR Guhanathan Ramanathan Syncfusion Team May 22, 2025 08:44 AM UTC

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.


sample: https://blazorplayground.syncfusion.com/embed/hZLIDIhVBwpPLMqz?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

 

Regards,

Guhanathan  



Attachment: Screenshot_20250522_130433_4f07d994.png


AY A. Yamal May 22, 2025 12:40 PM UTC

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


GR Guhanathan Ramanathan Syncfusion Team May 27, 2025 01:21 PM UTC

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.

If you want the tooltip to appear below the last row, you can set a static height for the Grid (for example, 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,

Guhanathan  

Attachment: GridTest_401ed8d9_(2)_c190eeb9.zip


AY A. Yamal May 27, 2025 08:37 PM UTC

Hi!

In the same project that I attached earlier if I set the grid height property to 500px the following happens:

500px.png

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.



GR Guhanathan Ramanathan Syncfusion Team May 28, 2025 03:39 PM UTC

Hi A.Yamal ,

Greetings from Syncfusion,

We are unable to reproduce the reported issue when testing with the latest versions 29.2.7
To proceed further with investigating the reported problem, we kindly request some additional information from your end. Please provide the following details:
  • 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.

Providing the above-requested information will greatly help us in validating the reported issue and delivering a resolution at the earliest. We appreciate your cooperation and understanding.

Regards,
Guhanathan  

Attachment: Video_Sample_5e3ab887.zip

Loader.
Up arrow icon