Ajax Accordion - Override Header events
Guys,
I am using the Accordion control from the Ajax control toolkit. The default event for the header is an expand/collapse.
In my header, I want to add a checkbox and be able to get to the checked event. At the moment, when I check it, the expand/collapse event triggers. I want to keep that action on the label in the header, but need to do something else with the checkbox. Possible?
EDIT - Hmmmmm, something about registering client side handlers I think, but thats way over my head. Any pointers please?
Thanks
Bob
Code:
<cc1:Accordion ID="accMain" runat="server" AutoSize="None" FadeTransitions="true" TransitionDuration="200" FramesPerSecond="40" RequireOpenedPane="false" SuppressHeaderPostbacks="true" DataSourceID="xmlDataSourceSections" onitemdatabound="accMain_ItemDataBound">
<HeaderTemplate>
<asp:Label ID="SectionNameLabel" runat="server" Font-Bold="true" Font-Size="Larger"
Text='<%# (Container.DisplayIndex + 1).ToString() + ". " + XPath("@SectionName")%>' />
<asp:CheckBox ID="sectionna" runat="server" Text="Not Applicable" />
</HeaderTemplate>
<ContentTemplate>
<%--The content template for the Accordion Template which is a Repeater--%>
Re: Ajax Accordion - Override Header events
<asp:CheckBox ID="sectionna" runat="server" Text="Not Applicable" onclick="someJavaScriptMethod();" />