Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Definelife on Jan 08, 2010 02:11
open dhtmlx forum
AttachEvent to filter field of a grid

Dear support,

Is it possible to add a event to a filter field? I want to fire filter by choosing ENTER key when the mouse cursor possitioned in the filter field.

Thanks in advanced,
Answer posted by Stanislav (support) on Jan 11, 2010 02:51
You can use

grid.getFilterElement(index).onkeypress = function(){
    ... any custom logic ...
}

and, the next command can be used to trigger filtering by existing values
grid.filterByAll();