Hi,
I’m using dhtmlxGrid in my application. I want to use filter in the grid. But according to my requirements I need static options in the select filter. I know that in my application case, the values would be between those four options. So I need the filter to be filled with those options only even if the value to be shown in filter is not present in the source XML. Please help me with it.
Thanks,
Yogesh
Assuming, that you are using grid 2.5
grid.attachEvent(“onCollectValues”,function(index){
if ( index == 1 ) return [“a”,“b”,“c”,“d”];
return true;
})
where 1 - index of column for which select filter need to be customized ( zero based )
[“a”,“b”,“c”,“d”] - array of custom options