Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Definelife on Jan 05, 2010 07:34
open dhtmlx forum
Filter button

Dear Support,

How can I add a button next to the last filter field of a grid?

After the typing of all possibly filter criterium I want to click on the filter button to send filter criterium to server and I want to put filter button on de filter area of the grid object.

Is that possible?

Thanks in advanced,
Answer posted by Stanislav (support) on Jan 06, 2010 01:52
If you  are using built-in filters and connector on server side  (#connector_text_filter)
You can add the next code to the grid

//after grid and filters creation
var inp = grid.getFilterElement(0); //0 - index of column
inp.onkeydown = null; //clear auto-filter logic
//this need to be repeated against all columns which has filters

after that you can place any custom button on the page and call
   grid.filterByAll();
to apply filters.