-
Notifications
You must be signed in to change notification settings - Fork 131
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
Remote Filter With Null Datetime #332
Comments
Absolutely. |
Thanks for the answer. Although our datetime field is nullable, we are getting "Nullable value must have a value" when we want to use header filter. I copied the error message below. Do you have any idea about this problem ?
|
Can be an EF Core bug.
As a possible workaround, try setting |
Is there any way to disable date grouping on header filter (year, month, day) for a specific column ? |
It's possible to provide a custom data source for the column header filter. Example with an array: {
dataField: "orderDate",
dataType: "date",
headerFilter: {
dataSource: [
{ text: "7/5/1996", value: new Date("1996-07-05") },
{ text: "7/8/1996", value: new Date("1996-07-08") }
]
}
} In this case, interval grouping is not applied. |
We have millions of rows in a table and disabling remote grid is not an option. |
OK, I'd like to help debug the failing LINQ query. Would you please share the related query string and the source collection used in You can post here or submit a private question to DevExpress Support Center. public object Orders(DataSourceLoadOptions loadOptions) {
// 1. Copy the value of the queryString variable
var queryString = HttpUtility.UrlDecode(Request.QueryString.ToString());
// 2. Show a code snippet that describes the source collection used in DataSourceLoader
var source = _nwind.Orders;
return DataSourceLoader.Load(source, loadOptions);
} |
Thank you very much for your help. Below you can find the requested information. Please let me know if you have any question. Query String : Linq Query :
Response Model :
|
Thanks. This is the intermediate query that var dateGroups = listQuery
.GroupBy(obj => new {
Y = (int?)obj.OrderDate.Value.Year,
M = (int?)obj.OrderDate.Value.Month,
D = (int?)obj.OrderDate.Value.Day
})
.OrderBy(g => g.Key.Y)
.ThenBy(g => g.Key.M)
.ThenBy(g => g.Key.D)
.Select(g => new {
Count = g.Count(),
g.Key.Y,
g.Key.M,
g.Key.D
})
.ToArray(); Please check whether it runs OK or also fails. |
Hi, Thank you very much for your help. |
Great. Closing this. |
Related EF Core issue: |
Hi,
Is there any way to filter rows with NULL datetime like selecting "Blanks" on string field ?
Thanks,
Best Regards
The text was updated successfully, but these errors were encountered: