I'm using the HeaderTemplate and the ContentTemplate of the Accordion control and binding it to a datatable. For some reason it doesn't display any data. If I bind the datatable to a datalist it works as ecpected, is this a known issue or am i doing something completely wrong. I'm binding the accordion control in the code behind if this makes any difference. Here is the code:
<cc1:Accordion ID="databoundaccordion" runat="server" AutoSize="None"
HeaderCssClass="articleHeader" HeaderSelectedCssClass="articleHeaderSelected"
ContentCssClass="articleBody" FadeTransitions="true"
SuppressHeaderPostbacks="true" RequireOpenedPane="true"
TransitionDuration="250" FramesPerSecond="40">
<HeaderTemplate>
<%# DataBinder.Eval(Container.DataItem, "name")%>
</HeaderTemplate>
<ContentTemplate>
<p>Content goes here</p>
<a href="Articles.aspx">Go</a>
</ContentTemplate>
and in the c# code behind:
databoundaccordion.DataSource = presenter.getDataTable();
databoundaccordion.DataBind();