Originally Posted by
Vladimir
Where do you place script tag to that javascript file with plugin?
try to add it to the head after ResourcePlaceholder control
<head ...>
<ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles"/>
<script type="text/javascript" src="..."></script>
</head>
Thanks, that works for including the js file required by the plugin and eliminates the "Ext is undefined" error, but I'm still not sure how to use the <ext:GenericPlugin> setting. Here's what I have:
<ext:GridPanel ID="gpStatsReport" runat="server" >
<Store> ... </Store>
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items> ... </Items>
</ext:Toolbar>
</TopBar>
<Plugins>
<ext:GenericPlugin ID="ExcelDownload" runat="server" InstanceName="Ext.ux.Exporter.Button" >
</ext:GenericPlugin>
</Plugins>
</ext:GridPanel>
Here's the js to initialize the plugin:
//Create the Download button and add it to the top toolbar
var exportButton = new Ext.ux.Exporter.Button({
component: gpStatsReport,
text : "Download as .xls"
});
gpStatsReport.getTopToolbar().add(exportButton);
I'm having trouble putting them together - how can I get the plugin to appear in the ToolBar?
thanks,
Chris