Using wj-flex-grid-filter with wj-flex-grid

Posted by: pradnya.choudhari on 29 October 2019, 9:48 am EST

  • Posted 29 October 2019, 9:48 am EST

    I am using wijmo version 5.20171.282 and angular version 4.1

    I am trying to implement a basic filter for wj-flex-grid.

    I ahve gone through several of forum questions and other example and found many.

    One specific one is given below:

    Taken from below topic

    https://www.grapecity.com/forums/wijmo/changing-default-filter-no

    init(grid:wjcGrid.FlexGrid,filter:wjcGridFilter.FlexGridFilter){

    filter.defaultFilterType=wjcGridFilter.FilterType.Condition;

    var colfil=filter.getColumnFilter(‘country’).conditionFilter;

    var Operator=wjcGridFilter.Operator;

    wjcCore.culture.FlexGridFilter.stringOperators=[

    { name: ‘Contains’, op: Operator.CT },

    { name: ‘Equals’, op: Operator.EQ },

    { name: ‘Begins with’, op: Operator.BW },

    { name: ‘Ends with’, op: Operator.EW },

    ];

    //similarly you can also set numberOperators,dateOperators, booleanOperators

    }

    my issue is with my version of wijmo the wjcGridFilter does no loner support FilterType.

    All I see is it offers wjcGridFilterModule, wjcGridFilter, and wjcGridFilterMeta

    In that case how do I use above example to implement a simple filter.

    I need the filter to apply to single column.

    thanks,

    Prad

  • Posted 30 October 2019, 2:01 am EST

    Hi Pradnya,

    As per my understanding by looking at the snippet provided, I think that you have imported the wrong module in your component file. Please try updating the import statement:

    import * as wjcGridFilter from 'wijmo/wijmo.grid.filter';
    

    Let me know if this solves your issue or otherwise.

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels