0
votes

I want to have a dedicated edit toolbar button on my grid and use double-click/Enter key for other purpose.

Can I somehow change the click/enter-to-edit behavior of the row-editor plugin without hacking away at its' internals? From a glance on the code it seems pretty rigid, but I thought maybe someone already had this problem and has a creative solution.

2

2 Answers

3
votes

Looks like this works, if anyone got a better idea, I'm open to suggestions

plugins: [
    Ext.create('Ext.grid.plugin.RowEditing', {
        startEditByClick: function (){},
        onEnterKey: function (){}
    })
],
0
votes

In ExtJs 4.2 this solution don't work. You should override the onCellClick method like you posted above:

plugins: [
    Ext.create('Ext.grid.plugin.RowEditing', {
        onCellClick: function (){}            
    })
]

This works for me.