2
votes

I have peculiar problem. I have a regular grid in extjs 4.2 and I want to access record data from the editor. One of the columns is defined as editor:combobox and has focus event handler. I want to access the entire record from that event handler, how do i do it?

1

1 Answers

4
votes

There is a context reference inside your editor plugin, so you can call it from your focus event like this:

listeners: {
    focus: function (component,events) {
        var grid = component.up('grid'),
            plugin = grid.findPlugin('cellediting');
        console.log(plugin.context.record);
    }
}

That should do it.