Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 18, 2008 10:49
open dhtmlx forum
DHX Grid : Custom Filter

Hi there,
I am having image in one column on which I want to put a filter.
As #select_filter will show the whole img tag and we do not have image as filter in combobox in DHX.
How to put userdata which will contain image type and those userdatas will be populated in the filter combo box.

Can u please tell me the steps or help with some example. ????
Answer posted by Support on Sep 22, 2008 01:45
The select filter gets values from the column using getValue method. This method returns values according to the column type.

If you don't want to show some text in the options, you can:

1) redefine getValue method for the used column type (excell) ( changing can be done in the dhtmlxgridcell.js) or create a new excell. Please, see article in the documentation dhtmlxGrid/doc/articles/Custom_excell_creation.html (http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_excell_creation.html)

2) set own  filter in the header: dhtmlxGrid/doc/articles/Data_filtering_search.html ( http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Data_filtering_search.html )