filterColumns property is "undefined"

Posted by: greg.frazer on 6 December 2017, 12:40 am EST

    • Post Options:
    • Link

    Posted 6 December 2017, 12:40 am EST

    I have downed the code for :"

    http://demos.wijmo.com/5/Angular/FlexGridFilter/FlexGridFilter/

    When I set filters for 2 columns and then examine the wijmo.grid.filter.FlexGridFilter’s filterColumns property it is “undefined”

    How can I get the columns that have filters

  • Posted 7 December 2017, 7:37 am EST

    Hi Greg,

    If you are using Angular 2, please refer to the demo plunker for the same:

    http://plnkr.co/edit/s4iJVwVU9hNxCFVnRMOk?p=preview

    ~Manish

  • Posted 7 December 2017, 8:08 pm EST

    I see.

    To clarify, you set the filterColumns with those columns that you want to filter on.

    Leaving it unset will return an undefined, meaning all columns can be filtered.

    Correct?

  • Posted 8 December 2017, 1:14 am EST

    Hi Greg,

    Yes, you are correct. Along with this, Setting this property to null or to an empty array adds filters to all columns.

    Hope it clears!

    ~Manish

Need extra support?

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

Learn More

Forum Channels