|
-
Feb 19th, 2009, 07:48 AM
#1
Thread Starter
Fanatic Member
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--%>
Last edited by staticbob; Feb 19th, 2009 at 08:59 AM.
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|