Aug 04, 2010, 3:17 PM
[CLOSED] [1.0] Add AjaxEvent to Portlet tool button
There a number of posts related to handling a portlet tool button cllick. The ext:Window Hide Handler thread comes close to what I need, but the tool buttom I am using will have a custom event as opposed to .hide or .collapse. I wish to call a popup ext window from the server in a callback (not full postback) that will handle configuration for the portlet whose "gear" button is clicked.
I am able to use this code
I am able to use this code
portlet.Tools.Add(New Ext.Net.Tool(Ext.Net.ToolType.Gear, "CallEdit();", "Edit Portlet"))
to set the button to call the javascript method CallEdit(), but I am not sure where to go from there. With ext windows, one can add an AjaxEvent, as in this code snippet:<ext:Window
ID="Window1"
runat="server"
Title="Window with AjaxEvent"
Closable="true"
CloseAction="Hide">
<AjaxEvents>
<Hide OnEvent="Window1_Hide" />
</AjaxEvents>
</ext:Window>
Is this possible with the portlet tool button? If you have a suggestion to give, please use codebehind form, not markup.
Last edited by geoffrey.mcgill; Aug 05, 2010 at 7:28 PM.