PDA

View Full Version : Rowediting pluging override issue



arkarthickraja
15 Sep 2012, 5:55 AM
Hi,
I am trying to override rowediting plugin , i need to override reposition:
function(animateConfig) but it is not getting called. kindly help.

code:


var



rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {


clicksToEdit: 1


});
Ext.override(Ext.grid.plugin.RowEditing,{

reposition:
function(animateConfig) {

alert(
'inside reposition--->');
});

var
logsGridPanel = Ext.create('Ext.grid.Panel', {

title:
'Simpsons',

clicksToEdit: 1,
plugins: [rowEditing],
...
});

scottmartin
15 Sep 2012, 1:26 PM
Are you placing the override at the top of your code? I prefer to place them in separate files and included them right after ext-all.js (or whatever you use)

Scott

arkarthickraja
16 Sep 2012, 9:20 AM
Thanks scott, i have resolved the issue.