Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid column format is not applied when the column is bound to a nullable DateOnly field (Core) #8117

Open
IvanDanchev opened this issue Jan 21, 2025 · 0 comments
Assignees
Milestone

Comments

@IvanDanchev
Copy link
Contributor

IvanDanchev commented Jan 21, 2025

Bug report

The column format applied through the .Format() option is ignored, if the column is bound to a nullable DateOnly field.

Reproduction of the problem

  1. Declare a nullable DateOnly field in the view model:

public DateOnly? PaymentDate { get; set; }

  1. Bind a column to the field and set its format:

columns.Bound(p => p.PaymentDate).Title("Date").Format("{0:MM/dd/yyyy}").Width(160);

Current behavior

The specified format is ignored, e.g., the Grid shows 2025-01-21, instead of 01/21/2025

Expected/desired behavior

The specified column format is applied.

Environment

  • Kendo UI version: 2024.4.1112
  • Browser: [all ]
@alestoya alestoya self-assigned this Jan 22, 2025
@alestoya alestoya added this to the 2025 Q1 (Feb) milestone Jan 22, 2025
@github-actions github-actions bot added FP: Planned Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants