Change the filter choice value count for Grid Excel filter in ASP.NET MVC.
By default, the first 1000 records will be displayed in the Grid’s Excel-Filter and you can get the other records in filter choice based on the search value in search bar of the excel filter dialog in ASP.NET MVC Grid.
It is possible to change the filter count for the excel filter by modifying the filterChoiceCount argument value in the ActionBegin event for the filterchoicerequest type.
This is demonstrated in the below sample code where the filterChoiceCount value is set as 20,
<script> // ActionBegin event function function onActionBegin(args: any) { // Check if request type is filterchoicerequest if (args.requestType === "filterchoicerequest") { // Modify the filter choice count value args.filterChoiceCount = 20; } } </script>
Output
Conclusion
I hope you enjoyed about how to change the filter choice value count for Grid Excel filter in ASP.NET MVC.
You can refer to our ASP.NET MVC Grid feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC Grid example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!