Skip to content

Conversation

LincolnJota
Copy link

Improve Date Formatting and Localization in Syncfusion DataGrid:
Add date formatting support in DataGrid (AdvancedFilter) and localization improvements

Description:
This PR adds functionalities for date formatting in syncfusion_flutter_datagrid and improves localization support in syncfusion_localizations and syncfusion_flutter_core.

Changes Included:

syncfusion_flutter_datagrid:

  • column.dart:

    • Line 1964: Added _dataGridStateDetails for dependency injection.
    • Line 2115: Refactored getDisplayValue to display date based on the mask.
    • Line 2141: Created the static method formatDate to format a date to String based on DateTime and mask.
    • Line 2750: Added _dataGridStateDetails member to the DataGridCheckboxFilterHelper class.
  • cell_widget.dart:

    • Line 1828: Added mask field dataGridConfiguration.localization.dateFormat into getDisplayValue.
    • Line 2059: Added mask field dataGridConfiguration.localization.dateFormat into getDisplayValue.

syncfusion_localizations:

  • generated_syncfusion_localizations.dart:
    • Added dateFormat getter to all langs in this file.

syncfusion_flutter_core:

  • global_localizations.dart:
    • Line 13: Added dateFormat field to the abstract class SfLocalizations.
    • Line 492: Added dateFormat to _DefaultLocalizations.

Motivation:
These changes were implemented to allow better date formatting in DataGrid based on user localization preferences. Adding dateFormat to localizations ensures that date formatting is consistent with the user's regional settings.

Checklist:

  • Code follows the contribution guidelines.
  • Documentation has been updated as necessary.
  • Tests have been added/updated.
  • Code has been tested locally.

Usage Examples:
PT_BR:
Portuguese Example
EN_US:
English Example

@VijayakumarMariappan VijayakumarMariappan added data grid Data grid component open Open labels Jun 6, 2024
@RafaelJP13
Copy link

Muito bom!

@AdlanDaniel
Copy link

Ficou muito bom esse ajuste!

@andersonsantos6
Copy link

Gostei. é o que precisamos!

@abineshPalanisamy
Copy link

Hi @LincolnJota ,

Your request has been acknowledged, and we've already logged it as a feature. It will be considered for implementation in one of our upcoming releases. During the planning phase of each release cycle, we evaluate all pending features and select those for implementation based on several criteria, including product vision, technological feasibility, and customer demand. We appreciate your patience and understanding during this process. For further details, please refer to the feedback below.

Feedback link: 48883

Regards,
Abinesh P

@ashok-kuvaraja ashok-kuvaraja added waiting for customer response Cannot make further progress until the customer responds. uncertain Uncertain feature and removed open Open labels Jun 7, 2024
@ashok-kuvaraja
Copy link
Collaborator

Hi @LincolnJota,

You can follow up regarding this feature through the provided feedback link. We're closing this issue now. If you need any further assistance, reopen this issue. We are always happy to help you.

Regards,
Ashok K

@ashok-kuvaraja ashok-kuvaraja removed the waiting for customer response Cannot make further progress until the customer responds. label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data grid Data grid component uncertain Uncertain feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants