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

Quickgrid date formatting can't change when changing culture #58308

Open
1 task done
artemfomin opened this issue Oct 9, 2024 · 0 comments
Open
1 task done

Quickgrid date formatting can't change when changing culture #58308

artemfomin opened this issue Oct 9, 2024 · 0 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@artemfomin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In Quickgrid component I have a column

<PropertyColumn TGridItem="Discount" TProp="DateTime" Property="@(x => x.ValidTill)" 
	                Format="dd MMM yyyy"
	                Class="phone-hide"/>

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

1 participant