Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Oct 30, 2008 21:45
open dhtmlx forum
Grid filter

Hi,
how to set the id for the filters and get the id of the filter
Answer posted by Support on Oct 31, 2008 03:41
If you meant the id of filter html element, you can get this element by DOM:

- for select filter:
var el = grid.hdr.rows[2].cells[COLUMN_INDEX].getElementsByTagName("SELECT")[0];
- for text:
var el = grid.hdr.rows[2].cells[COLUMN_INDEX].getElementsByTagName("INPUT")[0];

Then you can set id for this element:

el.id = "some id";