View Full Version : Grid Rowediting - Icon on Buttons

2 Aug 2013, 3:14 AM
Hello, everyone!

I am trying to get an icon into the Update and Cancel Buttons inside grid's RowEditing. But I can't quite get it to work.

Has anyone else tried this, and has been successful (preferrably without heavy manipulations :P).

What I've tried so far is changing / overriding Ext.grid.RowEditorButtons

items: [{ cls: cssPrefix + 'row-editor-update-button',
itemId: 'update',
handler: plugin.completeEdit,
icon: rowEditor.saveBtnIcon,
text: rowEditor.saveBtnText,
disabled: rowEditor.updateButtonDisabled
}, {
cls: cssPrefix + 'row-editor-cancel-button',
handler: plugin.cancelEdit,
icon: rowEditor.cancelBtnIcon,
text: rowEditor.cancelBtnText

And then referring to it in the RowEditor config (like is done with the saveBtnText and cancelBtnText), but I can't get it to work.

Thank you in advance,


7 Aug 2013, 10:32 AM
How are you then passing the btn icon config to the roweditor? Can you share that code as well?