I gave up on trying to use the binding and just added the data in code:
foreach (News newsItem in News.GetTop())
{
AccordionPane pane = new AccordionPane();
HtmlAnchor headerLink = new HtmlAnchor();
headerLink.HRef = "";
headerLink.Attributes.Add("onclick", "return false;");
headerLink.Attributes.Add("class", "accordionLink");
headerLink.InnerText = newsItem.Title;
pane.HeaderContainer.Controls.Add(headerLink);
HtmlGenericControl content = new HtmlGenericControl();
content.Attributes.Add("class", "accordianContent");
content.InnerText = newsItem.NewsContent;
pane.ContentContainer.Controls.Add(content);
newsAccordian.Controls.Add(pane);
}
I think given time this is bound to be fixed, but I couldn't wait.
Dave