Our blazing fast Grid component built with pure JavaScript


Post by henrikbackman »

The function onColumnFilterFieldChange does not trigger an event when you remove the last character. Is this intended behaviour?

Post by pmiklashevich »

onColumnFilterFieldChange is a private function. What events you expect it to fire?
Please open this demo and run in console:
scheduler.store.filters.on('change', console.log, console)
scheduler.store.on('filter', console.log, console)
Now type "a" in the Stuff column input. See 2 events are logged.
Remove the "a" using keyboard. See 2 events are logged again.

Pavlo Miklashevych
Sr. Frontend Developer


Post by henrikbackman »

I expect the same event for removing the last character as when I remove any other character. Or when I add a character for that matter.

I've tried you store functions but can't get it to work with our filtering needs. Our data is a blend of objects, array and strings. The reason for the objects is that we have a bunch of links that we want in the grid but we only want to filter on the actual text and not the URL. And sometimes there are more than one link, therefor array. Sometimes just text = string.

Post Reply