Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i am using ajax accordian Control , iam getting the every thing is fine,

just like dynamic data , paging ect,

one thing functionality is missing like when user click on the header it was not opening the Content panel
my sample code is :


ASP.NET
<div>
              <asp:ScriptManager ID="ScriptManager1" runat="server">
          
           <asp:Accordion ID="Accordion1" runat="server" AutoSize="None" 
                ContentCssClass="accordionContent" FadeTransitions="true" FramesPerSecond="40" 
                HeaderCssClass="accordionHeader" 
                HeaderSelectedCssClass="accordionHeaderSelected" 
                OnItemCommand="Accordion1_ItemCommand"  
                
                SuppressHeaderPostbacks="true" RequireOpenedPane="false" TransitionDuration="250"
                Width="3200">
                <HeaderTemplate>
                    <table align="center" width="100%">
                    <theda>
                  
                            <th align="left">
                             <asp:Label ID="Label5" runat="server" Text= <%#Eval("ticketno")%>>
                              -<%#Eval("clientname")%>
                            </th>
                           <%-- <table><tbody><tr><td align="left" width="5">
                                    <%#Eval("raiseddata") %>  </td></tr></tbody></table>--%>
                            <th align="left">
                                    <%#Eval("status") %>
                            </th>
                           
                        
                    </theda>
                      
                    </table>
                </HeaderTemplate>
                <contenttemplate>
                    <table width="100%">
                        <tr>
                            <td>
                                <%--<asp:Label ID="Label6" runat="server" Text="ClientName:">--%>
                                <%#Eval("clientname") %>
                            </td>
                            <td>
                               <%-- <asp:Label ID="Label7" runat="server" Text="MobileNo:">--%>
                                <%#Eval("mobileno") %>
                            </td>
                            <td>
                                <%--<asp:Label ID="Label12" runat="server" Text="OrganizationName:">--%>
                                <%#Eval("organizationname") %>
                            </td>
                        </tr>
                        <tr>
                        <td colspan="3">
                        <%#Eval("reson") %>

                        </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label16" runat="server" Text="Date:">
                                <%#Eval("date") %>
                                                          </td>
                            <td>
                                <asp:Label ID="Label13" runat="server" Text="Recived:">
                                <%#Eval("raisedperson") %>
                            </td>
                            <td>
                                <asp:Label ID="Label14" runat="server" Text="DepartMentName:">
                                <%#Eval("departmentname") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%#Eval("updateddate")%>
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList3" runat="server" Text='<%#Eval("status") %>' Width="200">
                                    <asp:ListItem>Solved
                                    <asp:ListItem>UnSolved
                                    <asp:ListItem>Processing
                                
                            </td>
                            <td>
                                <asp:Button ID="Button4" runat="server" CommandName="update" Text="update"/>
                            </td>
                           
                        </tr>
                      <%--  <tr>
                        <td>
                         <asp:Label ID="Label17" runat="server" Text="Updated Date:">
                                <%#Eval("updateddate") %>
                        </td>
                        </tr>--%>
                    </table>
                </contenttemplate>
            
            <div></div>
            </div>

what is error , and where iam going wrong , can any body please Give an idea
Posted
Updated 5-Dec-11 21:23pm
v3
Comments
[no name] 6-Dec-11 3:24am    
EDIT: updated "pre" language

1 solution

<ajax:Accordion ID="Accordion1" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent" runat="server" SelectedIndex="0" FadeTransitions="true" SuppressHeaderPostbacks="true" TransitionDuration="250" FramesPerSecond="40" RequireOpenedPane="false" AutoSize="None">
<Panes>

<ajax:AccordionPane ID="AccPan1" runat="server">
<Header>...</Header>
<Content>...</Content>
</ajax:AccordionPane>

<ajax:AccordionPane ID="AccPan2" runat="server">
<Header>...</Header>
<Content>...</Content>
</ajax:AccordionPane>

</Panes>
</ajax:Accordion>

Try this one
 
Share this answer
 
Comments
[no name] 7-Dec-11 9:47am    
thanks for your replay
iam getting everthing but nnot getting the Content pan but in my friend system the Same code is Working and he can able to see the Content Pan when clicks on Header

please Give me idea

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900