Hi all,
I'm using v4.8.2 of DNN, developing a module. Within that module I want to put a collapsible panel, and of course I'm struggling.
I have placed the following in the control
ajx:CollapsiblePanelExtender id="cpnlAddPayment" runat="Server"TargetControlID="pnlAddPayment" CollapsedText="Click to Expand" ExpandedText="Click to Collapse" TextLabelID="lblAction" CollapseControlID="pnlHeader" ExpandControlID="pnlHeader" Collapsed="true" CollapsedSize="0" ></ajx:CollapsiblePanelExtender>
<asp:Panel ID="pnlHeader" runat="Server" CssClass="Grid-Header" >
<asp:Label ID="lblAction" runat="server"></asp:Label>
</asp:Panel>
<asp:Panel ID="pnlAddPayment" runat="server" backcolor="red">
This is the content we will collapse!
</asp:panel>
Then in the Page_Load event handler I put:
Register AJAX components if available
If DotNetNuke.Framework.AJAX.IsInstalled Then
but when I click on the "header" panel, it collapses and then immediately expands again. I can't get it to collapse and stay that way.
I'm sure I'm doing something wrong, but am pretty new to AJAX so any guidance would be appreciated.
Thanks
Paul H.
'Register the script manager
<