- Home
- Forum
- ASP.NET MVC
- problem with filter grid by between date
problem with filter grid by between date
Hello, I try filter by between date, but not working. There show me a data 21/07/2021 to 16/09/2021.
I try filter this range 01/08/2021 to 31/08/2021 but on the gris show me this list 01/08/2021 to 30/08/2021. the 31/08/2021 not show me. example:
| Not filter | Filter 01/08/2021 to 31/08/2021 |
|
28/07/2021 01/08/2021 01/08/2021 05/08/2021 06/08/2021 15/08/2021 22/08/2021 30/08/2021 30/08/2021 31/08/2021 31/08/2021 01/09/2021 05/09/2021 |
01/08/2021 01/08/2021 05/08/2021 06/08/2021 15/08/2021 22/08/2021 30/08/2021 30/08/2021 What happen with 31/08/2021 ?? |
Also I try with command and not comand it is same problem.
{ field: "OrderDate", operator: "greaterthanorequal", predicate: "and", matchcase: true , value: startOfFilter },
{ field: "OrderDate", operator: "lessthanorequal", predicate: "and", matchcase: true , value: endOfFilter }
or
{ field: "OrderDate", operator: "lessthan", predicate: "and", matchcase: true , value: endOfFilter }
- Share us the date value for ‘31/08/21’ bound in the Grid data source.
- Share us the Grid code file.
- Let us know how you have referenced the script file for the EJ2 controls in your application.
- If possible share us a simple sample to replicate the problem or try reproducing it in the above provided sample.
Hello. I find an example.
http://jsplayground.syncfusion.com/chdhdbrb
If you see there, the filter is day 13 to day 14, there show day 13 not all 14.
On my project show me this. look the images.
Whit filters
there exist the 31/08/2021
Also I create a button, but is same result
var gridObj = $("#Grid").ejGrid("instance");
gridObj.model.filterSettings.filteredColumns = [
{ field: "u.DeliveryDate", operator: "greaterthanorequal", predicate: "and", matchcase: true, value: startOfFilter },
{ field: "u.DeliveryDate", operator: "lessthanorequal", predicate: "and", matchcase: true, value: endOfFilter }];
gridObj.refreshContent();
Query: problem with filter grid by between date
After following the above reference, still faced issue please share us the following details.
- Share the product detail version.
- Share the Tree Grid rendering code example.
- Share the screenshot of stacktrace details(face if any)
- If possible, reproduce the issue in the attached sample or share the issue reproducible sample.
- Share the video demo of the issue.
- 3 Replies
- 3 Participants
-
JA Jose Arturo
- Sep 17, 2021 07:41 AM UTC
- Sep 22, 2021 03:47 PM UTC