PDA

View Full Version : accessing row editing plugins in controller



nimaous
21 Jun 2012, 7:05 AM
Hi
I add a row editing plugin for my gridpanel .

and I want to handle adding new user in my controller I simply user
var rowediting=this.waiterlist.rowediting;

which waiterlist is a ref to my main panel in my view

but i got this error :
Uncaught TypeError: Cannot read property 'rowEditing' of undefined
is there any way to access the grid panel row editing plugins in controller

redraid
21 Jun 2012, 7:14 AM
Use pluginId config:


plugins: [{
pluginId: 'rowedit',
//plugin options
}]


Use getPlugin method:


var rowediting = this.waiterlist.getPlugin('rowedit'),

nimaous
21 Jun 2012, 7:34 AM
I use getPlugin function but I got this error :

Uncaught TypeError: Cannot read property 'length' of undefined