Darrell Brogdon
Darrell Brogdon

Reputation: 6983

Change the style of a grid row when checkcolumn is checked in Extjs4

I have a grid with a checkcolumn. I want to be able to change the style of a given row of checkbox on that row is checked.

Right now I have this:

listeners: {
    checkchange: function (checkcolumn, rowIndex, checked) {
        if (checked) {
        }
    }
}

But I don't know what to put inside the conditional that will give me an object with a method that allows me to change the style.

Upvotes: 2

Views: 507

Answers (1)

Evan Trimboli
Evan Trimboli

Reputation: 30092

Override the getRowClass method. When the checkbox changes, the row will update in the DOM which will trigger this method.

Upvotes: 4

Related Questions