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

DateTimeOffset OData query issue #249

Closed
igorgy opened this issue Jan 11, 2021 · 2 comments
Closed

DateTimeOffset OData query issue #249

igorgy opened this issue Jan 11, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@igorgy
Copy link

igorgy commented Jan 11, 2021

I have an issue filtering and searching by DateTimeOffset field, i thought i have an issue similar to
#225
but, i updated and still have it.

My column is described as:
c.Add(o => o.CreationTime).Filterable(true).Sortable(true).SetInputType(InputType.DateTimeLocal).SetFilterWidgetType("DateTimeLocal").Format("{0:yyyy-MM-dd HH:mm}").SortInitialDirection(GridShared.Sorting.GridSortDirection.Descending);

where CreationTime is DateTimeOffset.

and it produces the following odata url:

https://localhost:44326/odata/EstimateJobDto?$count=true&$filter=(tolower(CreationTime)+eq+%272021-01-11t13:34:00%2B03:00%27)&$top=0

That gives me the following error:
"The query specified in the URI is not valid. No function signature for the function with name 'tolower' matches the specified arguments. The function signatures considered are: tolower(Edm.String Nullable=true)."

@gustavnavar gustavnavar added the bug Something isn't working label Jan 11, 2021
@gustavnavar gustavnavar added enhancement New feature or request and removed bug Something isn't working labels Jan 22, 2021
@gustavnavar
Copy link
Owner

GridBlazor 2.1.6 adds filter support to DateTimeOffset columns

@igorgy
Copy link
Author

igorgy commented Jan 22, 2021

thx, works as expected.

rgentry09 pushed a commit to rgentry09/ERP-ASP.NET that referenced this issue Jul 10, 2023
dev0926 added a commit to dev0926/gridNET that referenced this issue Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants