We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Date Filter Filter.Type.Menu - Filter between 2 dates

Hello, how can we get the date filter to filter between 2 dates.

On the help page it only showsless than, greater than etc,
Can you tell me how to enable filtering between 2 dates.

thanks

1 Reply

JK Jayaprakash Kamaraj Syncfusion Team March 13, 2017 12:03 PM UTC

Hi Megatron, 

Thank you for contacting Syncfusion support. 

To overcome this problem we suggest you to use excel filtering. You can enable excel menu by setting FilterType as Excel in FilterSettings . The excel menu contains an option such as Sorting, Clear filter, submenu for advanced filtering. In this filtering we have between options in excel filter dialog. Please refer to the below help document, code example and sample. 


@(Html.EJ().Grid<object>("Grid") 
     .Datasource((IEnumerable<object>)ViewBag.datasource) 
    .AllowPaging() 
    .AllowFiltering() 
    .FilterSettings(fil=>fil.FilterType(FilterType.Excel)) 
              … 
 
            
        })) 



 

Regards, 

Jayaprakash K. 

 


Loader.
Live Chat Icon For mobile
Up arrow icon