tags:

views:

16

answers:

1

Hello,

Is there a way to add plugin for a grid after the grid has loaded in extjs? I have trouble where I use extjs designer tool to create a grid; however, there's no option in the designer tool where i can specify the plugin. I'd like to find a way to do it programmingly, anyone has any idea how would I do it? Thanks in advance.

A: 

Sure, in the config options for the grid, simply use the property:

plugins:[nameofplugin]

Seperate multiple plugins with commas. Do this in the code before its loaded as opposed to setting it through a call however. I.e.:

 yourExtJSobject =  new Ext.ObjectType({
  plugins: [nameofyourplugin]
                ...otherproperties....
 });

Go to the API documentation: http://dev.sencha.com/deploy/dev/docs/ and search for 'plugins' in the right hand search box for help :)

Ergo Summary