Posted 11 November 2024, 6:32 am EST
Hi,
Based on my understanding, you are trying to use the complete worksheet as a table and adding the rows above the current colHeaders to act as header and apply the filter on the current headers.
However, It is important to note that the filter property is used for the cell range not for the headers. Hence, we cannot apply the filter on the headers/sub-headers. This behavior is by design and aligns with excel.
We recommend leveraging the Table class in SpreadJS for effective table implementation, as it aligns more closely with typical table requirements and supports features like built-in filtering, styling, and structured references. The Table class ensures a more seamless experience when managing table data and properties.
More details on how to use this can be found here: https://developer.mescius.com/spreadjs/demos/features/tables/basic-table/purejs
If this does not meet your needs or if you have a specific use case, please share further details so we can provide more tailored guidance.
Looking forward to your response.
Best regards,
Ankit