Click here to Skip to main content
15,902,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:Repeater ID ="rptrTaskMap" runat="server" DataSourceID="TaskPhaseDS" OnItemDataBound="rptrTaskMap_itemDataBound">
            <ItemTemplate>
                <asp:HiddenField ID="hfPhase_id" runat="server" Value='<%# Eval( "id" )%>' />
                <asp:HiddenField ID="hfPhase_Desc" runat="server" Value='<%# Eval( "description" )%>' />
                <asp:Panel ID="pnlHeader" runat="server" BackColor=" Red">
                    <%# Eval( "description" )%>
                </asp:Panel>
                <ajax:CollapsiblePanelExtender ID="CollapsTaskMap" runat="server" ExpandedText="Expanded" CollapsedText="Collapsed"
                    TargetControlID="pnlHeader">
                </ajax:CollapsiblePanelExtender>
            </ItemTemplate>
            </asp:Repeater>

ajax:CollapsiblePanelExtender is not working. It works if i place ajax:CollapsiblePanelExtender out side repeater. please help me.
Thanks,
Manu
Posted
Updated 16-Jul-13 3:08am
v2
Comments
vinay.tatipamula 16-Jul-13 11:10am    
how it was working fine, you have not used linkbutton control to show hide the content.?
anyways better use simple jquery to expand / collapse content. ex: http://redhotsly.github.io/simple-expand/

XML
<asp:Repeater ID ="rptrTaskMap" runat="server" DataSourceID="TaskPhaseDS" OnItemDataBound="rptrTaskMap_itemDataBound">
            <ItemTemplate>
                <asp:HiddenField ID="hfPhase_id" runat="server" Value='<%# Eval( "id" )%>' />
                <asp:HiddenField ID="hfPhase_Desc" runat="server" Value='<%# Eval( "description" )%>' />
                <asp:Panel ID="pnlHeader" runat="server">
                    <asp:Label ID="lblText" runat="server" Text='<%# Eval( "description" )%>' />
                    <asp:Image ID="ImgExpand" EnableTheming="false" AlternateText="Expand" runat="server" ImageUrl="~/Images/expand.png" e />
                    <asp:Image ID="ImgCollapse" EnableTheming="false" AlternateText="Collampse" runat="server" ImageUrl="~/Images/collapse.png" />
                </asp:Panel>
                <asp:Panel ID="pnlBody" runat="server" BackColor=" Red">
                    Body!!
                </asp:Panel>
<ajax:CollapsiblePanelExtender ID="CollapsTaskMap" runat="server" ExpandedText="Expanded" CollapsedText="Collapsed"
                    TargetControlID="pnlBody" ExpandControlID="ImgExpand" CollapseControlID="ImgCollapse">
                </ajax:CollapsiblePanelExtender>
            </ItemTemplate>
            </asp:Repeater>
 
Share this answer
 
hi please write your code between <asp:updatepanel xmlns:asp="#unknown"> tag.it will work
tanks
 
Share this answer
 

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