How to make the datatable filter working when column name is not present in dataset ?

Hi ,

I have below datatable :
https://snippet.webix.com/11dj2pqz

It has only one column named as 'members'. However the data set it is showing is just an array without any column id. Therefore the column filter is not working.

How can I make the filter working ?
My constraint is I can not change the data set.

Comments

  • It is possible to set a custom filtering rule in compare property of a filter:

    {content:"textFilter", compare:customCompare}
    

    As a filtering function, this method iterates through data and gets the following parameters as arguments:

    • a value that supposed to be a column value (item.members in your case),
    • a value of the filter,
    • the entire data item,

    So you can easily access any data attribute and provide your own logic. Please, check: https://snippet.webix.com/xy24zu3c

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion