Numeric Filter by API

How can i do numeric filtering using API.

The reason to do it this way is because i have input field that is not on the grid header.

Try to use a filteration with custom parameters.
For example:

mygrid.filterBy(0,function(a){ return (a<500);});