Check whether filter has been applied to the datatable

Is there a way to check whether the filters are applied to the data-table in webix methods?

Regards,
Kaleem B N

Tagged:

Comments

  • edited July 2017

    if table is using static loading, then you can compare actual count with all items count:

    var count = table.count();
    var realCount = 0;
    table.eachRow(function(){
        realCount++;
    }, true);
    OR
    realCount = Object.keys(table.data.pull).length //if you do not care IE<9
    if (realCount > count) {
       webix.message("filtered");
    }
    
  • Thanks a lot integral... It worked ... :)

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!