Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a custom form. for some controls I want the controls to be in accordion pane so that the controls could be repeated when i click on add button which is inside accordion.
Posted
Comments
[no name] 19-Jan-16 0:43am    
Can you please define more clearly: "that the controls could be repeated when i click on add button which is inside accordion"

Do "Improve Question" and append your exact requirement to get better response.

Hi,

User Jquery According,
Inside jquery Accordion place asp.net Grid control.
Grid control provides the functionality to add a new row on clic of button
in this way you can accomplish what you want.




Regards,
gunaprasad
 
Share this answer
 
Comments
Member 12253249 19-Jan-16 3:06am    
Could you please help me with snippet, I am new to all this.
Hi,


ASP.NET
<form id="form1" runat="server">
<div>
		<asp:ScriptManager ID="ToolkitScriptManager1" runat="server">
		</asp:ScriptManager>
		<asp:Accordion
			ID="Accordion1"
			CssClass="accordion"
			HeaderCssClass="accordionHeader"
			HeaderSelectedCssClass="accordionHeaderSelected"
			ContentCssClass="accordionContent"
			runat="server">
<contenttemplate>
  <asp:gridview id="grd1" runat="server" xmlns:asp="#unknown"></asp:gridview>
</contenttemplate>
		</asp:Accordion>
	</div></form>


</form>


Please follow the above sample code.
 
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