I have a #select_filter in the header of my data column. The column is type link, so each cell has a link to another page. In each cell, I have text similar to link1, link2, link3, etc. and an accompany link similar to site.com/link2, etc…
When I click on the arrow in the filter box, instead of this:
link1
link2
link3
...
I see this:
link1^http://site.com/link1
link2^http://site.com/link2
...
Is there a way to make the filter understand that the cell content is a link?
Please, try to use the following code:
[code]function eXcell_link(cell){
this.cell = cell;
this.grid = this.cell.parentNode.grid;
this.isDisabled=function(){return true;}
this.edit = function(){}
this.getValue = function(){
if(this.cell.firstChild.getAttribute)
return this.cell.firstChild.innerHTML
else
return “”;
}
this.setValue = function(val){
if((typeof(val)!=“number”) && (!val || val.toString()._dhx_trim()=="")){
this.setCValue(" “,valsAr);
return (this.cell._clearCell=true);
}
var valsAr = val.split(”^");
if(valsAr.length==1)
valsAr[1] = “”;
this.setCValue(""+valsAr[0]+"",valsAr);
}
}[/code]