Jun 14, 2012, 1:40 PM
[CLOSED] PagingToolbar plugin ownerCt
Hi,
In Ext.NET v1.3 I had a plugin that could be used like this inside a GridPanel or TreePanel
In Ext.NET v1.3 I had a plugin that could be used like this inside a GridPanel or TreePanel
<BottomBar>
<ext:PagingToolbar ID="GruposCalendariosPager" runat="server">
<Plugins>
<SoftMachine:IndexServerPagingToolbar runat="server" />
</Plugins>
</ext:PagingToolbar>
</BottomBar>
And this is my plugin code (example):Ext.namespace('Ext.ux.netbox');
Ext.ux.netbox.IndexServerPagingToolbar = function (config) {
//Nothing
};
Ext.ux.netbox.IndexServerPagingToolbar.prototype = {
//Instancia del control PagingToolbar
controlPagingToolbar: null,
init: function (control) {
if (control.ownerCt.xtype == "netgrid") {
//Some Code
}
}
};
Ext.ux.IndexServerPagingToolbar = Ext.ux.netbox.IndexServerPagingToolbar;
But control.ownerCt is undefined right now. How can I obtain ownerCt to access xtype and other properties?
Last edited by Daniil; Jun 15, 2012 at 11:52 AM.
Reason: [CLOSED]