dotnet / dotnet/aspnetcore

Quickgrid date formatting can't change when changing culture

Open
#58,308 0 comments 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

In Quickgrid component I have a column
```

```
which actually turns date to 15 Sep. 2024 or 15 sept. 2024 depending on locale settings. When the culture is being changed elsewhere without forcing page reload the date starts to rapidly blink between old and new date representations. External locale switcher calls `StateHasChanged()` for each subscriber on locale change.
Navigating elsewhere and back stops blinking but keeps date in old locale representation.
Changing locale again (to any language that hasn't yet been used) leads to blinking between 3 states. Etc up to N

### Expected Behavior

Expected behavior is single format change without blinking and keeping a new state of date equivalent to last selected culture format and language.

### Steps To Reproduce

_No response_

### Exceptions (if any)

No exceptions

### .NET Version

8.0.300

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.