Dynamic loaded grid and dynamic filters in header

Hello!
I want to make a header filtering for any column.
The input field in proper cell is created. The problem is with a creating a proper function called onKeyUp input event. Ho

And next what with column sorting? How to attache filter params to sort url fired when I click on header cell? I do not want to lose filtering when I sort by column.

Now when I write somethicg in filter field the firebug return an error:
“a is null” dhtmlxgrid.js line 163

Here you can find an example of ready-working filter for all columns:
docs.dhtmlx.com/doku.php?id=dhtm … of_filters