syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.44k stars 672 forks source link

Disable Column Highlighting on Hover in Syncfusion Tables #1845

Closed EduardoYamauchi closed 2 weeks ago

EduardoYamauchi commented 2 weeks ago

Use case

Hello,

I would like to request the feature to disable the highlighting of columns when hovering over them in Syncfusion tables. This feature significantly disrupts the user experience, particularly when adding a custom menu or clickable elements at the top of the table. I noticed that it is possible to disable the highlighting of rows using the highlightRowOnHover parameter, but there is currently no similar option for column titles. Implementing this functionality would enhance the usability and customization of the tables.

Thank you for your attention, and I look forward to your response.

Best regards,

Proposal

SfDataGrid(
highlightColumnOnHover: false, 
// ... Other properties...
)
abineshPalanisamy commented 2 weeks ago

Hi @EduardoYamauchi ,

Based on the provided details. Currently, SfDataGrid doesn't have any property to restrict the header row highlighting color on hovering. However, you can restrict the hover color of header cells by setting the header hover color to transparent using SfDataGridThemeData.headerHoverColor. We have attached a sample and code snippets for your reference. Please refer to the following sample and snippets for more information. Additionally, for a more in-depth understanding, please consult the user guide documentation link provided. If you have any further concerns, please feel free to reach out.

Regards, Abinesh P

EduardoYamauchi commented 2 weeks ago

It worked. Thanks.