PDA

View Full Version : Diable row editor when press button in column



arui
21 Jan 2011, 1:12 AM
Hi all,

i used GridPanel with Ext.ux.grid.RowEditor plugin for editing, there is a button in a column, press it will open a window, when the first time to press the button, the window is opened(expected), when the second time to press the button, the window is opened again(expected), but the row goes into editable state(unexpected). I tried the following:
1. From source code(RowEditor.js), i know return false for beforeedit event can disable row editor, but i only want to press the button column to disable row editor, can't get current column in the event.
2. Listen to the grid's cell click event, but it seems that the cellclick event is fired after beforeedit,
any one know how to handle it, ur good idea is appreciated well.

thx

arui
23 Jan 2011, 7:33 PM
No nody can help me!!!

PSB
25 Oct 2011, 7:39 AM
editor: {
xtype: "button",
text: "button",
iconCls: "toolbar_search16",
handler: function () {