Skip to content

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

@IvanDanchev

Description

@IvanDanchev

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 ]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions