In our grid we have a column of type ro that can contain html. An example cell might look like this:
<![CDATA[test]]>
We also use a #select_filter on this column. The problem is that the options in this select box contain the html tags, while we’d only like to display the link text in that list. This column looks and functions as expected in the grid itself. Is there a way to exclude the html tags from showing up and have the #select_filter options consist only of the link text?
You can modify code of “filter” extension in next way ( snippet below written for dhtmlxgrid 1.6 )
dhtmlxgrid_filter.js, line 56
dhtmlXGridObject.prototype.collectValues=function(column){
…
var val=this._get_cell_value(col[i],column).replace(/<[^>]*>/g,"");