Trap Enter key in Header

Hi,



How i can trap enter keypress in input field in header (for detect reloading grid with this filter) ?



Thanks



St�phane NOUHAUD

There is no special methods in grid API.
When you are using built in filtering it is done automatically.
If you implementing some custom UI - you can attach event by direct DOM manipulations.

    document.getElementById(‘h_input’).onkeypress=function(e){
       if ( (e||event).keyCode == 13 ){
             //custom code here
        }
    })