Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Guido Dubois on Jul 15, 2009 02:41
open dhtmlx forum
custom filter in Header

Is it possible to add an custom filter into the allready exsisting attachedheader?
for example an special select box (for smart rendering with dynamix loading) or an checkbox.
Answer posted by dhxSupport on Jul 15, 2009 02:55
You can get reference to the necessary grid's header using:
  var hdr=mygrid.hdr.rows[HEADER_ROW_INDEX].cells[COLUMN_INDEX];
  hdr.innerHTML="<select id='customFilter'>select</select>"
  mygrid.makeFilter("customFilter",COLUMN_INDEX)