View Full Version : Dynamicly adding an plugin to an grid

18 Sep 2011, 9:16 AM
Hi @all
I am trying to add an plugin to my grid. The plugin should be added after an column have been resized and the content is cutted (elipsed).

I am using this (http://www.sencha.com/learn/legacy/Extension:CellToolTips) plugin to attach an tooltip to grid`s cell and this works very nice, thx to BitPoet for this.

But now how to attach the tooltip only if the content is cutted or how to reactivate the plugin?

I have tried do add an empty plugin, which means plugins : ' ', and to add the needed rest (field, tpl) on columnresize. But I don`t know how to restart the plugin.
In this (http://www.sencha.com/forum/showthread.php?96185-Solved-Add-plugin-dynamically-during-initComponent-of-parent/page2) thread ExtKD solved his similar problem with

// Ext JS Designer - code file
MyGrid = Ext.extend(MyGridUi, {
initComponent: function() {
MyGrid.superclass.initComponent.call(this); ...
var ptbar = this.getBottomToolbar();
var psplugin = new Ext.ux.PageSizePlugin();
psplugin.init(ptbar); <- If anybody uses this, don't forget the .init(..)
but I can`t get it working for me.

Any Ideas how to solve my problem?

Thanks in advance
greets streha