0
votes

I need to add cell borders to my ExtJS grid, here is what I did: I added this to the grid:

viewConfig:
    {
        stripeRows: false,
        getRowClass : function(record, index) {  
            return "grid-row" 
        }
    },

And then I included this css style:

.grid-row td{
    line-height:22px;
    font-size: 13px;
    border: solid gray 1px;
}

My border works fine, but then my grid shows the horizontal scroll.

Is there any other solution for add borders to the cells, of for get rid of the scroll?

Thanks.

1
I'm using 4.2.1 too. - Roberto Rodriguez

1 Answers

0
votes

The problem was I was using flex for set the width of my 5 columns. As work around: I switched to use default width:'20%', then in one of the columns I set width:'19.9%'. It works fine now. Thanks.