Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David Charron on Dec 16, 2008 11:50
open dhtmlx forum
Grid combo filter using enableFilteringMode(false) to keep the combo value when filter active

Hi,

Here's what I want to do. I want the combo in the header filter to keeps all its value in the dropdown when a value is selected.

I've read on enableFilteringMode(false) from the combo control which I think does this. Am I right?

If so how do I get hold of the combo control from the filtering attached header to change its properties?

The combo is attached using an attached header with #combo_filter

Thank you.

David Charron
Answer posted by Support on Dec 17, 2008 01:33
There is no way to access combo object for in-header filter, but you can change the logic directly in code

dhtmlxgrid_filter.js , line 167
dhtmlXGridObject.prototype.makeFilter=function(id,column,preserve){
...
var z=new dhtmlXCombo(id,"_filter","90%");
z.enableFilteringMode(true); //just comment this line

Answer posted by David Charron on Dec 17, 2008 07:00
Thank you.
It worked.
It would be nice to have an option to change this without modifying the code.