Planned
Last Updated: 22 Jan 2025 17:39 by ADMIN
Scheduled for 2025 Q1 (Feb)
E
Created on: 21 Jan 2025 14:50
Category: Grid
Type: Bug Report
0
Grid column format is not applied when the column is bound to a nullable DateOnly field (Core)

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 ]
0 comments