Darrell Brogdon
Darrell Brogdon

Reputation: 6973

How do I get the parent row index from a grid cell in Extjs?

I have a CheckColumn in a GridPanel and I want to disable the editable cells of a given row if the checkbox on that row has been checked. Is this possible?

Upvotes: 0

Views: 960

Answers (1)

Evan Trimboli
Evan Trimboli

Reputation: 30082

The easiest way to do this is to listen to the beforeedit event on the editor. Something like:

cellEditing.on('beforeedit', function(ed, context) {
    return !context.record.get('checkField');
});

Upvotes: 2

Related Questions