Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by briank on Aug 04, 2009 08:56
open dhtmlx forum
Highlight Text in Complex Header

How can I highlight text in a filter input box located in the header?

The "Complex content in header" sample in the Header/Footer section doesn't allow me to highlight text that has been entered into the filter input box.

Seems to only happen in IE7 and IE8.
Answer posted by dhxSupport on Aug 06, 2009 01:26
If you have attached custom input into the header, you can reference to it by it's ID and highlight text if necessary. If you are using inbuild grid's filters, you can get reference to it with getFilterElement(COLUMN_INDEX) method:
mygrid.load("grid.xml",function(){
   var filter=mygrid.getFilterElement(COLUMN_INDEX)
})