Posted 11 January 2021, 6:03 pm ESTI's using MVC Tag Helpers to setup a c1-flex-grid and associated c1-flex-grid-filter. It works fine, but when I want to reference the filter in java script (for example to add a handler) I cant figure out how to do it.
var theGrid = wijmo.Control.getControl('#ff');
I've seen theGrid.filter and theGrid.collectionView.filter used in some examples but they don't work for me.
Most other examples generate both the grid and the filter in js using wijmo, but because I am using the ASP tag helpers this isn't an option.
I know I can use the event binding properties in the tag helpers (e.g. filter-changing) but I am sure there are plenty of situations where I need to get a direct reference to filter, is this possible in java script?