c# - Repeater inside a repeater with jQuery accordion -
i did nested repeater according tutorial. same thing
http://www.codeproject.com/articles/6140/a-quick-guide-to-using-nested-repeaters-in-asp-net
but added jquery accordion example:
http://www.snyderplace.com/demos/accordion.html
everything good, realized ui issues. mean example if 1 of nested repeaters has 100 records , has 1 record, second 1 record, has blank space reserved had 100 records also. knows how fit height each nested repeater elements?
<div id="accordion"> <asp:repeater id="summary" runat="server" onitemdatabound="summary_itemdatabound"> <headertemplate> </headertemplate> <itemtemplate> <div> id:<asp:literal id="litcategory" runat="server" /> </div> <div> <asp:repeater id="detail" runat="server" onitemdatabound="detail_itemdatabound"> <headertemplate> <table> <thead> <tr> <th>id</th> <th>name</th> </tr> </thead> <tbody> </headertemplate> <itemtemplate> <tr> <td><asp:literal id="litid" runat="server" /></td> <td><asp:literal id="litname" runat="server" /></td> </tr> </itemtemplate> <footertemplate> </tbody> </table> </footertemplate> </asp:repeater> </div> </itemtemplate> <footertemplate> </footertemplate> </asp:repeater> </div>
i got it! found solution!
$(function () { $("#accordion").accordion({ collapsible: true, heightstyle: "content" }); });
i need specify attributes , that's it!
Comments
Post a Comment