Custom Cells with dataprocessor

I have a grid with a custom cell type (code below) that changes the cells background color based on inputted value. This works great until I attach a dataprocessor to the grid then It no longer changes the background color.

I am using v.2.1 build 90226

How can I change the cells background while using a dataprocessor?

Thanks in advance,

function eXcell_colors(cell){

    if (cell){






        if ((this.cell.firstChild)&&(this.cell.firstChild.tagName == “TEXTAREA”))

            return this.cell.firstChild.value;

        if (this.cell._clearCell)

            return “”;

        return this.grid._aplNFb(this.cell.innerHTML.toString()._dhx_trim(), this.cell._cellIndex);



            var tv = this.obj.value;


            return this.val != this.getValue();




    eXcell_colors.prototype=new eXcell_ed;


        if (!val||val.toString()._dhx_trim() == “”){



        } else



        this.setCValue(this.grid._aplNF(val, this.cell._cellIndex));

        if (val==0)"";

         else if(val==1)“green”;

         else if(val==2)“blue”;

         else if(val==3)“purple”;

         else if(val==4)“yellow”;

        else if(val==5)“orange”;

        else if(val==6)“cyan”;

        else if(val==7)“pink”;

        else if(val==8)“grey”;

        else if(val==9)“darkseagreen”;



The dataprocessor must not block normal cell coloring in your case, but during row update it may reset colors to normal state.
As possible workaround you can block code of dataprocessor, which changes the look of updated row, by using the next code

return false;

where dp - an instance of dataprocessor.