I have 3 different grids on a page, but the Excel-like filter for dates only works in one of those grids for the other two grids I get the filter on top of the page completely away from the grid with no selection on dates, I'm already parsing the data, so the grid knows the content is date type.
I also have a boolean column which I'm displaying as a checkbox but the filter doesn't work for one of the grids, it gives me only one option even when the data has the two values.
I have grids with the same filters on other pages and they work just fine, the only difference is this 3 are under a tab, all my grids under tabs seem to have issues with the date filter.
How can I fix this issue?
I've attached photos of the grids where the date filter and checkbox column are not working.
Thanks for the help
Here's the other grid,
Hi Maria Munoz,
Greetings from Syncfusion support.
Query: why does the Excel filter not display all grid data? What could be the possible causes and how can I resolve this issue?
The Excel filter dialog only considers the first 1,000 records from the grid’s dataSource when it is initially opened. If Boolean value, true is not present within the first 1,000 records of the dataSource, it will not appear in the filter list when the Excel filter dialog is first opened.
How to Retrieve Missing Records in the Excel/Checkbox Filter Dialog?
Important to note:
we need to clarify that the on-demand filter feature is only available from version 24.1.41 onwards. If you are using an older version, this feature will not work as expected.
Release Notes Reference: Version 24.1.41
filterChoiceCount customization solution documentation: https://ej2.syncfusion.com/vue/documentation/grid/filtering/excel-like-filter#customize-the-filter-choice-count
Reference for on-demand based solution included sample: https://stackblitz.com/edit/sqnzkagw?file=src%2FApp.vue,package.json
Query: Excel-like filter for dates only works in one of those grids for the other two grids I get the filter on top of the page completely away from the grid with no selection on dates.
We have reviewed your query and tested an Excel-like filter for dates in multiple grids. However, we could not replicate the issue where the filter appears at the top of the page instead of near the grid. In our tests, the filter popup opens correctly at the column header when clicking the filter icon.
To assist you further, we need additional information, as the provided details are insufficient to reproduce the issue.
Please provide the following details for further investigation:
Once we receive this information, we can analyze the issue further and provide a precise resolution.
Regards,
Vasanthakumar K
I manage to replicate the filter issue
Reference for issue example: https://stackblitz.com/edit/sqnzkagw-3vx1ugak?file=src%2FApp.vue
Hi Maria Munoz,
Upon reviewing the provided sample, it has been observed that the code line responsible for enabling the on-demand filtering feature has been commented out. We recommend incorporating the following lines of code to ensure that all records in the dataSource are displayed within the Excel filter dialog. As we mentioned earlier, by default, only the first 1,000 records are shown to prevent rendering delays when opening the filter dialog.
|
freightBillingFilterOptions: { type: 'Excel', enableInfiniteScrolling: true, // if this line is commented checkbox issue will occur. operators: { stringOperator: [{ value: 'contains', text: 'Contains' }], }, columns: [ { field: 'completed', operator: 'equal', value: false, matchCase: false, }, ], },
|
Additionally, we were unable to replicate the reported issue regarding the positioning of the filter dialog for date columns. For further clarification, please refer to the updated sample and the video demonstration provided.
Sample: https://stackblitz.com/edit/sqnzkagw-pk67bq32?file=src%2FApp.vue
Video Demonstration: Please find the attachment.
Documentation
on-demand Excel filtering:
Render-checkbox-list-data-in-on-demand-for-excel-checkbox-filtering
Regards,
Aishwarya R