How to get ExcelFilterBase property from args in actionBegin function?


I’m using this package "@syncfusion/ej2-vue-grids": "^19.2.59",,

And I want to this issue in my code:
https://www.syncfusion.com/forums/155673/grid-excel-filter-type-omitting-lots-of-distinct-values

This is my actionBegin function:

image

so I inspected the args parameter in actionBegin function. I found out that there is actually a property in args object named filterModel, and inside filterModel there is itemsCnt property:

image

But I cannot get the itemsCnt as you can see in the first image above, it is either undefined or error happened which stops the web app from running properly. It is different than usual javascript object. filterModel has a "type" of ExcelFilterBase and I cannot get filterModel property because I don’t know how to access an instance of ExcelFilterBase.

My goal is only to get itemsCnt inside the filterModel object. how I can do that?

Thanks for any help.

NB: This question is copied from https://github.com/syncfusion/ej2-vue-ui-components/issues/76, You can either answer there or here

Source: Vue – Stack Overflow

September 27, 2021
Category : News
Tags: ej2-syncfusion | ej2-vue-grids | syncfusion | Vue.js

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.