Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 20, 2009 14:19
open dhtmlx forum
grid filter using dynamic loading

How when someone types text into a filter in the header for a column can we reload data from the server (a php file) passing what they have typed to get the new data?

Answer posted by dhxSupport on Jun 22, 2009 02:06
To customize filtering in the grid you can use "onFilterStart" event. Event occurs when filtering was activated but before real filtering started. Parameters: array of indexes
array of filtering values
event is blockable - returning true from it will confirm filtering , any other value will block filtering. 
  grid.attachEvent("onFilterStart", function(indexes,values){
  //any custom logic
  });

You can find more information about custom filtering here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Data_filtering_search.html#grid_fsing