PDA

View Full Version : Dynamicaly change grid editor plugin



ahmettaha
2 Oct 2011, 4:41 AM
Hello,

I have a grid with some data on it. I want it to have row editor by default. And by clicking a button somewhere on the screen I want to change it start using cell editor. I was able to achieve this by calling

initPlugin(Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 1})

this works fine. However, there is one condition. If I edit a row with the row editor before clicking the button I mention above, it doesnt change to cell editor anymore. To make it work, I have to click that button directly without ever entering the row editor.

Can you please help how I can choose the editor plugin with the help of a button.

thanks.
Ahmet