开发者

I need to make Dynamic Collapsible Panel in ASP.NET using c# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_Python百科

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

Improve this question

I need To make Dynamic Collapsible Panel in ASP.NET using C#.

What is the best way to do this?


You can use the collapsible panel extender of the Ajax Control Toolkit, or one of the jQuery plugins listed here.

You can also use jQuery UI's accordion widget for that purpose.


My best bet would be using JQuery and in Javascript slideUp/slideDown the containing the panel.

Something like this:

    <div id="pnlPanelHeader">
        Caption <a href="#" onclick="$('#pnlPanel').toggle();return false;">Toggle</a>
    </div>
    <asp:Panel ID="pnlPanel" runat="server" ClientIDMode="Static">
        Content to be collapsed
    </asp:Panel>


Telerik have a free (for non-commercial use) library of controls (both ASPX and Razor), which include what you're asking for:

http://demos.telerik.com/aspnet-mvc/razor/panelbar

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜