binding datatable to accordion control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David  Lazos

    binding datatable to accordion control

    Hi,

    I'm using the HeaderTemplate and the ContentTemplate of the Accordion
    control and binding it to a DataTable.
    But it doesn't display any data. If i bind the same datatable to a datalist
    it works well as expected.
    Are there any tricks for Accordion Control ?
    the .aspx code ;
    *************** *
    <cc1:Accordio n ID="Accordion1 " runat="server" FadeTransitions ="True"
    SelectedIndex=" 0" TransitionDurat ion="300" HeaderCssClass= "accordionHeade r"
    ContentCssClass ="accordionCont ent">
    <Panes>
    </Panes>
    <HeaderTemplate >
    <a href="" onclick="return false;"><%# Eval("HEADER")% ></a>
    </HeaderTemplate>
    <ContentTemplat e>
    <%# Eval("CONTENT") %>
    </ContentTemplate >
    </cc1:Accordion>
    *************** *

    and i bind it on page_load event of aspx.cs
    *************** *
    protected void Page_Load(objec t sender, EventArgs e)
    {
    Accordion1.Data Source = for_using.getIn fo(); //it returns a DataTable
    Accordion1.Data Bind();
    }
    *************** **

    am i doing something wrong ?

    Thanks...


  • David  Lazos

    #2
    Re: binding datatable to accordion control

    i have just found this trick




    Comment

    Working...