PDA

View Full Version : Problems with GridPanel and RowEditor plugin



synchronicity
22 Feb 2010, 4:31 PM
I currently have a GridPanel with the RowEditor plugin that contains two buttons in the top toolbar: test1 and test2. I want the test1 button to make the second column of my GridPanel un-editable, and the test2 button to make the same column editable again. My event handling code so far is as follows:



this.test1Button.on({
scope:this,
click:this.func1
});

this.test2Button.on({
scope:this,
click:this.func2
});

func1:function() {
this.getColumnModel().setEditable(2, false);
},

func2:function() {
this.getColumnModel().setEditable(2, true);
}The test1 function makes the column un-editable, but the test2 button doesn't seem to work at all; I can't seem to get the second column to become editable once again.

What am I missing?