Overview
Simple Date Range Filter
The SimpleDateRangeFilter<T>
filter can be applied to DateTime
and DateOnly
properties as well as their nullable versions. It will return all records where the date on the target property falls between two values provided by the user. For a more detailed example, you can view the source code of this page here.
Id ⥯ |
DateTime (Inclusive) ⥯ |
Date And Time ⥯ |
DateOnly (Not Inclusive) ⥯ |
---|---|---|---|
No records! | |||
Displaying Page: 1 of 0 (0 total records)
|
Parameters
The following parameters can be set for each SimpleDateFilter<T>
Parameter | Type | Description | Default Value |
---|---|---|---|
DefaultValue |
DateTime? |
If set, this filter wil be active when the table loads and will filter the target property with the provided value | null |
Min |
DateTime? |
Will set the min property on the filter date input |
null |
Max |
DateTime? |
Will set the max property on the filter date input |
null |
IncludeTime |
bool |
Determines if time should be included when applying the filter as well as sets the filters input type to datetime-local is true. (This will always be false for DateOnly properties). |
false |
Inclusive |
bool |
Determines if the filter should be either a Greater/Less-Than filter (false) or Greater/Less-Than-Or-Equal filter (true) | false |