Show values in column filter from an external data source

Posted by: rizwan on 30 January 2020, 1:36 am EST

    • Post Options:
    • Link

    Posted 30 January 2020, 1:36 am EST

    I am using wijmo enterprise version with angular 7 and i come across a requirement in which i need to show a list of strings in filter popup from an external data source rather than the grid data on which search should also work. External data source is super set of grid data i.e. contains more data than grid e.g. grid data source has 50 rows and external source has more than 50 records. Although i have tried changing with unique values of filter but its not working.

    let columnFilter = this.filter.getColumnFilter(this.grid.columns[1]);
          columnFilter.valueFilter.uniqueValues = ['Alpena']
    

    Please share a stackblitz example or any sample to achieve that.

  • Posted 31 January 2020, 4:10 am EST

    Hi Rizwan,

    The code snippet shared by you is correct and it should work. But it depends, where the code is placed. We used the same code in the Filter initializing event. Please refer to the following stackblitz for the same:

    https://stackblitz.com/edit/wijmo-angular-vsjxyf?file=src/app/app.component.html

    Hope it helps!

    Regards,

    Manish Gupta

Need extra support?

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

Learn More

Forum Channels