GXT 4.0 Hide TextButtonCell in an specific row in a Grid
<p>I am using GXT4.0 / GAE 1.9.28 / GWT 2.7.</p>

<p>I created a grid, one of the columns is a TextButtonCell.</p>

<p>Here is the code of the button column:</p>

<pre><code>    TextButtonCell bcDinamic_ = new TextButtonCell(){
        @Override
        public void render(com.google.gwt.cell.client.Cell.Context context, String value, SafeHtmlBuilder sb) {
            super.render(context, value, sb);

        }
    };

    bcDinamic_.setIcon(images.AspiEnTransito_24());
    bcDinamic_.setIconAlign(IconAlign.LEFT);

    colDinamic = new ColumnConfig&lt;SerVisit, String&gt;(new ValueProvider&lt;SerVisit, String&gt;(){

        @Override
        public String getValue(SerVisit visit) {
            return visit.getEstatus() + "|" + (visita.isRequerirConfirmacionVisita()?"1":"0")+ "|" + (visita.isRequerirControlEntradaSalida()?"1":"0") ;
        }

        @Override
        public void setValue(SerVisit object, String value) {
            // TODO Auto-generated method stub

        }

        @Override
        public String getPath() {
            // TODO Auto-generated method stub
            return null;
        }

    },180);
    colDinamic.setCell(bcDinamic_);
    configs.add(colDinamic);
</code></pre>

<p>I need to hide the button in some specific rows, according to its value.</p>

<p>I tried something like this:</p>

<pre><code>        @Override
        public void render(com.google.gwt.cell.client.Cell.Context context, String value, SafeHtmlBuilder sb) {
               if (condition){              
                    super.render(context, value, sb);
               } else {
                    EMPTY:NO BUTTON!
                }
            }
</code></pre>

<p>It seems to work fine, but once in runtime, everytime the cursor highlight the row comes a error message:</p>

<p><strong>Error (TypeError): Cannot read property 'contains' of null</strong></p>

<p>In GXT 2 it was very easy to acomplish this, but now in GXT 4 I cant find a way.</p>

<p>Thanks</p>